diff options
Diffstat (limited to 'src/yuescript/yue_parser.cpp')
-rw-r--r-- | src/yuescript/yue_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index e5337b0..93787cd 100644 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
@@ -369,11 +369,11 @@ YueParser::YueParser() { | |||
369 | Switch = key("switch") >> space >> Exp >> | 369 | Switch = key("switch") >> space >> Exp >> |
370 | space >> Seperator >> ( | 370 | space >> Seperator >> ( |
371 | SwitchCase >> space >> ( | 371 | SwitchCase >> space >> ( |
372 | line_break >> *space_break >> check_indent_match >> space >> SwitchCase >> switch_block | | 372 | switch_block | |
373 | *(space >> SwitchCase) >> -(space >> switch_else) | 373 | *(space >> SwitchCase) >> -(space >> switch_else) |
374 | ) | | 374 | ) | |
375 | +space_break >> advance_match >> space >> SwitchCase >> switch_block >> pop_indent | 375 | +space_break >> advance_match >> space >> SwitchCase >> switch_block >> pop_indent |
376 | ) >> switch_block; | 376 | ); |
377 | 377 | ||
378 | Assignment = -(',' >> space >> ExpList >> space) >> (':' >> Assign | and_('=') >> if_assignment_syntax_error); | 378 | Assignment = -(',' >> space >> ExpList >> space) >> (':' >> Assign | and_('=') >> if_assignment_syntax_error); |
379 | IfCond = disable_chain_rule(disable_arg_table_block_rule(Exp >> -(space >> Assignment))); | 379 | IfCond = disable_chain_rule(disable_arg_table_block_rule(Exp >> -(space >> Assignment))); |