Skip to content

Commit 5c286df

Browse files
committed
fix: issue with continuing expressions from eol for windows
1 parent 03e4c96 commit 5c286df

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/states/EXPRESSION.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,13 @@ export const EXPRESSION: StateDefinition<ExpressionMeta> = {
133133
eol(_, expression) {
134134
if (
135135
!expression.groupStack.length &&
136-
(expression.terminatedByWhitespace || expression.terminatedByEOL) &&
137-
!checkForOperators(this, expression)
136+
(expression.terminatedByWhitespace || expression.terminatedByEOL)
138137
) {
139-
this.exitState();
138+
if (checkForOperators(this, expression)) {
139+
this.forward = 1;
140+
} else {
141+
this.exitState();
142+
}
140143
}
141144
},
142145

@@ -147,7 +150,6 @@ export const EXPRESSION: StateDefinition<ExpressionMeta> = {
147150
) {
148151
this.exitState();
149152
} else {
150-
// TODO: refactor to avoid using parentState
151153
const { parent } = expression;
152154

153155
switch (parent.state) {

0 commit comments

Comments
 (0)