File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -582,10 +582,10 @@ proc parsePar(p: var Parser): PNode =
582582 # | | 'finally' | 'except' | 'for' | 'block' | 'const' | 'let'
583583 # | | 'when' | 'var' | 'mixin'
584584 # | par = '(' optInd
585- # | ( &parKeyw (ifExpr \ complexOrSimpleStmt) ^+ ';'
586- # | | ';' (ifExpr \ complexOrSimpleStmt) ^+ ';'
585+ # | ( &parKeyw (ifExpr / complexOrSimpleStmt) ^+ ';'
586+ # | | ';' (ifExpr / complexOrSimpleStmt) ^+ ';'
587587 # | | pragmaStmt
588- # | | simpleExpr ( ('=' expr (';' (ifExpr \ complexOrSimpleStmt) ^+ ';' )? )
588+ # | | simpleExpr ( ('=' expr (';' (ifExpr / complexOrSimpleStmt) ^+ ';' )? )
589589 # | | (':' expr (',' exprColonEqExpr ^+ ',' )? ) ) )
590590 # | optPar ')'
591591 #
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ parKeyw = 'discard' | 'include' | 'if' | 'while' | 'case' | 'try'
3737 | 'finally' | 'except' | 'for' | 'block' | 'const' | 'let'
3838 | 'when' | 'var' | 'mixin'
3939par = '(' optInd
40- ( &parKeyw (ifExpr \ complexOrSimpleStmt) ^+ ';'
41- | ';' (ifExpr \ complexOrSimpleStmt) ^+ ';'
40+ ( &parKeyw (ifExpr / complexOrSimpleStmt) ^+ ';'
41+ | ';' (ifExpr / complexOrSimpleStmt) ^+ ';'
4242 | pragmaStmt
43- | simpleExpr ( ('=' expr (';' (ifExpr \ complexOrSimpleStmt) ^+ ';' )? )
43+ | simpleExpr ( ('=' expr (';' (ifExpr / complexOrSimpleStmt) ^+ ';' )? )
4444 | (':' expr (',' exprColonEqExpr ^+ ',' )? ) ) )
4545 optPar ')'
4646literal = | INT_LIT | INT8_LIT | INT16_LIT | INT32_LIT | INT64_LIT
You can’t perform that action at this time.
0 commit comments