From 3dd607c8887d2fe0186668aabca31bb84a41e2da Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 21 Oct 2022 10:06:31 +0800 Subject: fix issue #111. --- src/yuescript/yue_compiler.cpp | 2 +- src/yuescript/yue_parser.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 { typedef std::list str_list; -const std::string_view version = "0.15.5"sv; +const std::string_view version = "0.15.6"sv; const std::string_view extension = "yue"sv; 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() { >> -Space >> Break >> SwitchBlock; assignment = ExpList >> Assign; - IfCond = disable_do_chain_arg_table_block(assignment | Exp); + IfCond = disable_chain(disable_arg_table_block(assignment | Exp)); IfElseIf = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("elseif") >> IfCond >> plain_body_with("then"); IfElse = -(Break >> *EmptyLine >> CheckIndent) >> Space >> key("else") >> plain_body; IfType = (expr("if") | expr("unless")) >> not_(AlphaNum); -- cgit v1.2.3-55-g6feb