Skip to content

Commit

Permalink
fix: issue with continuing expressions from eol for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Mar 28, 2022
1 parent 03e4c96 commit 5c286df
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/states/EXPRESSION.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,13 @@ export const EXPRESSION: StateDefinition<ExpressionMeta> = {
eol(_, expression) {
if (
!expression.groupStack.length &&
(expression.terminatedByWhitespace || expression.terminatedByEOL) &&
!checkForOperators(this, expression)
(expression.terminatedByWhitespace || expression.terminatedByEOL)
) {
this.exitState();
if (checkForOperators(this, expression)) {
this.forward = 1;
} else {
this.exitState();
}
}
},

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

switch (parent.state) {
Expand Down

0 comments on commit 5c286df

Please sign in to comment.