diff options
author | Li Jin <dragon-fly@qq.com> | 2019-10-07 20:05:59 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2019-10-07 20:05:59 +0800 |
commit | 726fee3152c81fdac7e3ad5f663bfbea8f99ddd8 (patch) | |
tree | 203066824db5ad76520ed743c2af4005237d0078 /MoonParser/moon_parser.cpp | |
parent | 055fcb596781a8488afeb0030e9ef4295e3d7017 (diff) | |
download | yuescript-726fee3152c81fdac7e3ad5f663bfbea8f99ddd8.tar.gz yuescript-726fee3152c81fdac7e3ad5f663bfbea8f99ddd8.tar.bz2 yuescript-726fee3152c81fdac7e3ad5f663bfbea8f99ddd8.zip |
fixing compile issues.
Diffstat (limited to 'MoonParser/moon_parser.cpp')
-rw-r--r-- | MoonParser/moon_parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MoonParser/moon_parser.cpp b/MoonParser/moon_parser.cpp index ad86020..d709e29 100644 --- a/MoonParser/moon_parser.cpp +++ b/MoonParser/moon_parser.cpp | |||
@@ -15,7 +15,8 @@ std::unordered_set<std::string> State::keywords = { | |||
15 | "repeat", "return", "then", "true", "until", | 15 | "repeat", "return", "then", "true", "until", |
16 | "while", // Lua keywords | 16 | "while", // Lua keywords |
17 | "class", "continue", "export", "extends", | 17 | "class", "continue", "export", "extends", |
18 | "import", "switch", "unless", "using", "with" // Moon keywords | 18 | "import", "switch", "when", "unless", "using", |
19 | "with" // Moon keywords | ||
19 | }; | 20 | }; |
20 | 21 | ||
21 | rule plain_space = *set(" \t"); | 22 | rule plain_space = *set(" \t"); |
@@ -487,7 +488,7 @@ rule unless_line = key("unless") >> Exp; | |||
487 | rule statement_appendix = (if_else_line | unless_line | CompInner) >> Space; | 488 | rule statement_appendix = (if_else_line | unless_line | CompInner) >> Space; |
488 | rule Statement = | 489 | rule Statement = |
489 | ( | 490 | ( |
490 | Import | While | With | For | ForEach | | 491 | Import | While | For | ForEach | |
491 | Return | Local | Export | Space >> BreakLoop | | 492 | Return | Local | Export | Space >> BreakLoop | |
492 | Assignment | ExpList | 493 | Assignment | ExpList |
493 | ) >> Space >> | 494 | ) >> Space >> |