aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);