diff options
author | Li Jin <dragon-fly@qq.com> | 2019-09-12 16:12:20 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2019-09-12 16:12:20 +0800 |
commit | 50353c1456324e7bd3c130fceaf400aed7880a41 (patch) | |
tree | 0afe5823040dc9fc9ab39a9d7f4af647c061d7c1 /MoonParser/moon_parser.h | |
parent | 4e6f4e8124316866a08f9ddf3322fde87abc3c21 (diff) | |
download | yuescript-50353c1456324e7bd3c130fceaf400aed7880a41.tar.gz yuescript-50353c1456324e7bd3c130fceaf400aed7880a41.tar.bz2 yuescript-50353c1456324e7bd3c130fceaf400aed7880a41.zip |
spec/assign.moon and spec/bubbling.moon compiled
Diffstat (limited to 'MoonParser/moon_parser.h')
-rw-r--r-- | MoonParser/moon_parser.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/MoonParser/moon_parser.h b/MoonParser/moon_parser.h index bf618aa..6f9ef8f 100644 --- a/MoonParser/moon_parser.h +++ b/MoonParser/moon_parser.h | |||
@@ -21,11 +21,5 @@ struct State | |||
21 | size_t stringOpen; | 21 | size_t stringOpen; |
22 | std::stack<int> indents; | 22 | std::stack<int> indents; |
23 | std::stack<bool> doStack; | 23 | std::stack<bool> doStack; |
24 | std::unordered_set<std::string> keywords = { | 24 | static std::unordered_set<std::string> keywords; |
25 | "and", "while", "else", "using", "continue", | ||
26 | "local", "not", "then", "return", "from", | ||
27 | "extends", "for", "do", "or", "export", | ||
28 | "class", "in", "unless", "when", "elseif", | ||
29 | "switch", "break", "if", "with", "import", "true", "false", "nil" | ||
30 | }; | ||
31 | }; | 25 | }; |