From 726fee3152c81fdac7e3ad5f663bfbea8f99ddd8 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Mon, 7 Oct 2019 20:05:59 +0800 Subject: fixing compile issues. --- MoonParser/moon_parser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MoonParser/moon_parser.cpp') 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 State::keywords = { "repeat", "return", "then", "true", "until", "while", // Lua keywords "class", "continue", "export", "extends", - "import", "switch", "unless", "using", "with" // Moon keywords + "import", "switch", "when", "unless", "using", + "with" // Moon keywords }; rule plain_space = *set(" \t"); @@ -487,7 +488,7 @@ rule unless_line = key("unless") >> Exp; rule statement_appendix = (if_else_line | unless_line | CompInner) >> Space; rule Statement = ( - Import | While | With | For | ForEach | + Import | While | For | ForEach | Return | Local | Export | Space >> BreakLoop | Assignment | ExpList ) >> Space >> -- cgit v1.2.3-55-g6feb