diff options
author | Li Jin <dragon-fly@qq.com> | 2022-10-21 10:06:31 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-10-21 10:06:31 +0800 |
commit | 3dd607c8887d2fe0186668aabca31bb84a41e2da (patch) | |
tree | 49c406e9b48d794f7004b0ddf1945b2c7014bc3a /src | |
parent | 6b6e98d062c7ec5f11be79ed5164aa59047dab30 (diff) | |
download | yuescript-3dd607c8887d2fe0186668aabca31bb84a41e2da.tar.gz yuescript-3dd607c8887d2fe0186668aabca31bb84a41e2da.tar.bz2 yuescript-3dd607c8887d2fe0186668aabca31bb84a41e2da.zip |
fix issue #111.
Diffstat (limited to 'src')
-rw-r--r-- | src/yuescript/yue_compiler.cpp | 2 | ||||
-rwxr-xr-x | 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 2be4498..ff55e0e 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
@@ -60,7 +60,7 @@ namespace yue { | |||
60 | 60 | ||
61 | typedef std::list<std::string> str_list; | 61 | typedef std::list<std::string> str_list; |
62 | 62 | ||
63 | const std::string_view version = "0.15.5"sv; | 63 | const std::string_view version = "0.15.6"sv; |
64 | const std::string_view extension = "yue"sv; | 64 | const std::string_view extension = "yue"sv; |
65 | 65 | ||
66 | class YueCompilerImpl { | 66 | class YueCompilerImpl { |
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index f86afb4..ef700ae 100755 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
@@ -249,7 +249,7 @@ YueParser::YueParser() { | |||
249 | >> -Space >> Break >> SwitchBlock; | 249 | >> -Space >> Break >> SwitchBlock; |
250 | 250 | ||
251 | assignment = ExpList >> Assign; | 251 | assignment = ExpList >> Assign; |
252 | IfCond = disable_do_chain_arg_table_block(assignment | Exp); | 252 | IfCond = disable_chain(disable_arg_table_block(assignment | Exp)); |
253 | IfElseIf = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("elseif") >> IfCond >> plain_body_with("then"); | 253 | IfElseIf = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("elseif") >> IfCond >> plain_body_with("then"); |
254 | IfElse = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("else") >> plain_body; | 254 | IfElse = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("else") >> plain_body; |
255 | IfType = (expr("if") | expr("unless")) >> not_(AlphaNum); | 255 | IfType = (expr("if") | expr("unless")) >> not_(AlphaNum); |