aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-11-07 18:26:03 +0800
committerLi Jin <dragon-fly@qq.com>2022-11-09 11:29:32 +0800
commit95fd6ea93c2af6fb1707e480669d84ebe37fccbe (patch)
treeb893aa807d3b1311da6919e750f1c6e9e3ee3b0a
parente62eb9537df808ca461917cccea14e662312c775 (diff)
downloadyuescript-95fd6ea93c2af6fb1707e480669d84ebe37fccbe.tar.gz
yuescript-95fd6ea93c2af6fb1707e480669d84ebe37fccbe.tar.bz2
yuescript-95fd6ea93c2af6fb1707e480669d84ebe37fccbe.zip
fix issue #91.
-rw-r--r--src/yuescript/yue_parser.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp
index b134ee2..4aeb79a 100644
--- a/src/yuescript/yue_parser.cpp
+++ b/src/yuescript/yue_parser.cpp
@@ -634,7 +634,11 @@ YueParser::YueParser() {
634 not_(set("-~")) >> Seperator >> 634 not_(set("-~")) >> Seperator >>
635 ( 635 (
636 (Exp >> *(sym(',') >> Exp) >> -invoke_args_with_table) | 636 (Exp >> *(sym(',') >> Exp) >> -invoke_args_with_table) |
637 arg_table_block 637 arg_table_block |
638 pl::user(+space_one >> expr('(') >> Exp >> +(sym(',') >> Exp) >> sym(')'), [](const item_t& item) {
639 throw ParserError("write invoke arguments in parentheses without spaces or space seperated without parentheses", *item.begin, *item.end);
640 return false;
641 })
638 ); 642 );
639 643
640 const_value = (expr("nil") | expr("true") | expr("false")) >> not_(AlphaNum); 644 const_value = (expr("nil") | expr("true") | expr("false")) >> not_(AlphaNum);