aboutsummaryrefslogtreecommitdiff
path: root/src/yuescript/yue_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/yuescript/yue_parser.cpp')
-rw-r--r--src/yuescript/yue_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp
index 185d54b..607edc9 100644
--- a/src/yuescript/yue_parser.cpp
+++ b/src/yuescript/yue_parser.cpp
@@ -444,7 +444,7 @@ YueParser::YueParser() {
444 Index = symx('[') >> Exp >> sym(']'); 444 Index = symx('[') >> Exp >> sym(']');
445 ChainItem = Invoke >> -existential_op | DotChainItem >> -existential_op | Slice | Index >> -existential_op; 445 ChainItem = Invoke >> -existential_op | DotChainItem >> -existential_op | Slice | Index >> -existential_op;
446 DotChainItem = symx('.') >> (Name >> not_('#') | Metatable | Metamethod); 446 DotChainItem = symx('.') >> (Name >> not_('#') | Metatable | Metamethod);
447 ColonChainItem = symx('\\') >> ((LuaKeyword | Name) >> not_('#') | Metamethod); 447 ColonChainItem = (expr('\\') | expr("::")) >> ((LuaKeyword | Name) >> not_('#') | Metamethod);
448 invoke_chain = Invoke >> -existential_op >> -ChainItems; 448 invoke_chain = Invoke >> -existential_op >> -ChainItems;
449 ColonChain = ColonChainItem >> -existential_op >> -invoke_chain; 449 ColonChain = ColonChainItem >> -existential_op >> -invoke_chain;
450 450
@@ -534,7 +534,7 @@ YueParser::YueParser() {
534 Space >> SingleString | 534 Space >> SingleString |
535 Space >> LuaString 535 Space >> LuaString
536 ) >> 536 ) >>
537 symx(':') >> 537 symx(':') >> not_(':') >>
538 (Exp | TableBlock | +(SpaceBreak) >> Exp); 538 (Exp | TableBlock | +(SpaceBreak) >> Exp);
539 539
540 meta_variable_pair = sym(':') >> Variable >> expr('#'); 540 meta_variable_pair = sym(':') >> Variable >> expr('#');