aboutsummaryrefslogtreecommitdiff
path: root/MoonParser/moon_parser.cpp
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2019-10-07 20:05:59 +0800
committerLi Jin <dragon-fly@qq.com>2019-10-07 20:05:59 +0800
commit726fee3152c81fdac7e3ad5f663bfbea8f99ddd8 (patch)
tree203066824db5ad76520ed743c2af4005237d0078 /MoonParser/moon_parser.cpp
parent055fcb596781a8488afeb0030e9ef4295e3d7017 (diff)
downloadyuescript-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.cpp5
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
21rule plain_space = *set(" \t"); 22rule plain_space = *set(" \t");
@@ -487,7 +488,7 @@ rule unless_line = key("unless") >> Exp;
487rule statement_appendix = (if_else_line | unless_line | CompInner) >> Space; 488rule statement_appendix = (if_else_line | unless_line | CompInner) >> Space;
488rule Statement = 489rule 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 >>