aboutsummaryrefslogtreecommitdiff
path: root/src/yuescript/yue_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuescript/yue_parser.cpp')
-rwxr-xr-xsrc/yuescript/yue_parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp
index 772ae08..3d12190 100755
--- a/src/yuescript/yue_parser.cpp
+++ b/src/yuescript/yue_parser.cpp
@@ -324,8 +324,7 @@ YueParser::YueParser() {
324 expr("|") | 324 expr("|") |
325 expr(">>") | 325 expr(">>") |
326 expr("<<") | 326 expr("<<") |
327 expr("??") | 327 expr("??");
328 expr("#");
329 328
330 Update = Space >> update_op >> expr("=") >> Exp; 329 Update = Space >> update_op >> expr("=") >> Exp;
331 330
@@ -382,7 +381,7 @@ YueParser::YueParser() {
382 return st->chainBlockStack.empty() || st->chainBlockStack.top(); 381 return st->chainBlockStack.empty() || st->chainBlockStack.top();
383 }) >> +SpaceBreak >> Advance >> ensure( 382 }) >> +SpaceBreak >> Advance >> ensure(
384 chain_line >> *(+SpaceBreak >> chain_line), PopIndent); 383 chain_line >> *(+SpaceBreak >> chain_line), PopIndent);
385 ChainValue = Seperator >> (Chain | Callable) >> -existential_op >> -(InvokeArgs | chain_block); 384 ChainValue = Seperator >> (Chain | Callable) >> -existential_op >> -(InvokeArgs | chain_block) >> -table_appending_op;
386 385
387 simple_table = Seperator >> KeyValue >> *(sym(',') >> KeyValue); 386 simple_table = Seperator >> KeyValue >> *(sym(',') >> KeyValue);
388 Value = SimpleValue | simple_table | ChainValue | String; 387 Value = SimpleValue | simple_table | ChainValue | String;
@@ -427,6 +426,7 @@ YueParser::YueParser() {
427 Metamethod = Name >> expr('#'); 426 Metamethod = Name >> expr('#');
428 427
429 existential_op = expr('?') >> not_(expr('?')); 428 existential_op = expr('?') >> not_(expr('?'));
429 table_appending_op = expr("[]");
430 chain_call = (Callable | String) >> -existential_op >> ChainItems; 430 chain_call = (Callable | String) >> -existential_op >> ChainItems;
431 chain_item = and_(set(".\\")) >> ChainItems; 431 chain_item = and_(set(".\\")) >> ChainItems;
432 chain_dot_chain = DotChainItem >> -existential_op >> -ChainItems; 432 chain_dot_chain = DotChainItem >> -existential_op >> -ChainItems;