File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments