diff options
Diffstat (limited to '')
| -rw-r--r-- | MoonParser/moon_parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MoonParser/moon_parser.cpp b/MoonParser/moon_parser.cpp index c33469b..481c885 100644 --- a/MoonParser/moon_parser.cpp +++ b/MoonParser/moon_parser.cpp | |||
| @@ -135,7 +135,7 @@ rule ImportNameList = Seperator >> *SpaceBreak >> ImportName >> *((+SpaceBreak | | |||
| 135 | extern rule Exp; | 135 | extern rule Exp; |
| 136 | 136 | ||
| 137 | rule Import = key("import") >> ImportNameList >> *SpaceBreak >> key("from") >> Exp; | 137 | rule Import = key("import") >> ImportNameList >> *SpaceBreak >> key("from") >> Exp; |
| 138 | rule BreakLoop = key("break") | key("continue"); | 138 | rule BreakLoop = (expr("break") | expr("continue")) >> not_(AlphaNum); |
| 139 | 139 | ||
| 140 | extern rule ExpListLow, ExpList, Assign; | 140 | extern rule ExpListLow, ExpList, Assign; |
| 141 | 141 | ||
| @@ -481,7 +481,7 @@ rule statement_appendix = (if_else_line | unless_line | CompInner) >> Space; | |||
| 481 | rule Statement = | 481 | rule Statement = |
| 482 | ( | 482 | ( |
| 483 | Import | While | With | For | ForEach | | 483 | Import | While | With | For | ForEach | |
| 484 | Return | Local | Export | BreakLoop | | 484 | Return | Local | Export | Space >> BreakLoop | |
| 485 | Assignment | ExpList | 485 | Assignment | ExpList |
| 486 | ) >> Space >> | 486 | ) >> Space >> |
| 487 | -statement_appendix; | 487 | -statement_appendix; |
