diff options
Diffstat (limited to 'src/MoonP/moon_parser.cpp')
-rw-r--r-- | src/MoonP/moon_parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/MoonP/moon_parser.cpp b/src/MoonP/moon_parser.cpp index 4f12a34..5b537a1 100644 --- a/src/MoonP/moon_parser.cpp +++ b/src/MoonP/moon_parser.cpp | |||
@@ -538,12 +538,13 @@ MoonParser::MoonParser() { | |||
538 | unless_line = key("unless") >> Exp; | 538 | unless_line = key("unless") >> Exp; |
539 | 539 | ||
540 | statement_appendix = (if_line | unless_line | CompInner) >> Space; | 540 | statement_appendix = (if_line | unless_line | CompInner) >> Space; |
541 | statement_sep = and_(*SpaceBreak >> CheckIndent >> Space >> (set("($'\"") | expr("[[") | expr("[="))); | ||
541 | Statement = ( | 542 | Statement = ( |
542 | Import | While | Repeat | For | ForEach | | 543 | Import | While | Repeat | For | ForEach | |
543 | Return | Local | Global | Export | Macro | | 544 | Return | Local | Global | Export | Macro | |
544 | Space >> BreakLoop | Label | Goto | Backcall | ExpListAssign | 545 | Space >> BreakLoop | Label | Goto | Backcall | ExpListAssign |
545 | ) >> Space >> | 546 | ) >> Space >> |
546 | -statement_appendix; | 547 | -statement_appendix >> -statement_sep; |
547 | 548 | ||
548 | Body = Space >> Break >> *EmptyLine >> InBlock | Statement; | 549 | Body = Space >> Break >> *EmptyLine >> InBlock | Statement; |
549 | 550 | ||