diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-01-20 10:27:30 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-01-20 10:27:30 +0800 |
| commit | c6229c02564024d8c02c2d438b2fc180ce4c6bcf (patch) | |
| tree | 7760bcd6908995ed7a425fc10ad0eee96ebf2887 /src | |
| parent | 3fee6db80114e8a5c29f18ac57e7ea7c7459c91d (diff) | |
| download | yuescript-c6229c02564024d8c02c2d438b2fc180ce4c6bcf.tar.gz yuescript-c6229c02564024d8c02c2d438b2fc180ce4c6bcf.tar.bz2 yuescript-c6229c02564024d8c02c2d438b2fc180ce4c6bcf.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuescript/yue_compiler.cpp | 2 | ||||
| -rw-r--r-- | src/yuescript/yue_parser.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index c7802b6..f9b4f18 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
| @@ -78,7 +78,7 @@ static std::unordered_set<std::string> Metamethods = { | |||
| 78 | "close"s // Lua 5.4 | 78 | "close"s // Lua 5.4 |
| 79 | }; | 79 | }; |
| 80 | 80 | ||
| 81 | const std::string_view version = "0.32.0"sv; | 81 | const std::string_view version = "0.32.1"sv; |
| 82 | const std::string_view extension = "yue"sv; | 82 | const std::string_view extension = "yue"sv; |
| 83 | 83 | ||
| 84 | class CompileError : public std::logic_error { | 84 | class CompileError : public std::logic_error { |
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index b032826..f564f6a 100644 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
| @@ -1164,7 +1164,7 @@ YueParser::YueParser() { | |||
| 1164 | }); | 1164 | }); |
| 1165 | 1165 | ||
| 1166 | line = *(EmptyLine >> line_break) >> ( | 1166 | line = *(EmptyLine >> line_break) >> ( |
| 1167 | check_indent_match >> space >> Statement >> *(';' >> -(space >> Statement)) | | 1167 | check_indent_match >> space >> Statement >> *(';' >> space >> (Statement | not_(';'))) | |
| 1168 | YueComment | | 1168 | YueComment | |
| 1169 | advance_match >> ensure(space >> (indentation_error | Statement), pop_indent) | 1169 | advance_match >> ensure(space >> (indentation_error | Statement), pop_indent) |
| 1170 | ); | 1170 | ); |
