diff options
Diffstat (limited to 'src/yuescript/yue_parser.cpp')
-rw-r--r-- | src/yuescript/yue_parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp index 045e2c7..cd1fd48 100644 --- a/src/yuescript/yue_parser.cpp +++ b/src/yuescript/yue_parser.cpp | |||
@@ -889,6 +889,7 @@ YueParser::YueParser() { | |||
889 | 889 | ||
890 | FnArrowBack = '<' >> set("-="); | 890 | FnArrowBack = '<' >> set("-="); |
891 | Backcall = -(FnArgsDef >> space) >> FnArrowBack >> space >> ChainValue; | 891 | Backcall = -(FnArgsDef >> space) >> FnArrowBack >> space >> ChainValue; |
892 | SubBackcall = FnArrowBack >> space >> ChainValue; | ||
892 | 893 | ||
893 | PipeBody = Seperator >> | 894 | PipeBody = Seperator >> |
894 | pipe_operator >> space >> UnaryExp >> | 895 | pipe_operator >> space >> UnaryExp >> |
@@ -946,7 +947,7 @@ YueParser::YueParser() { | |||
946 | UnaryValue | TblComprehension | Comprehension | | 947 | UnaryValue | TblComprehension | Comprehension | |
947 | FunLit | Num | VarArg; | 948 | FunLit | Num | VarArg; |
948 | 949 | ||
949 | ExpListAssign = ExpList >> -(space >> (Update | Assign)) >> not_(space >> '='); | 950 | ExpListAssign = ExpList >> -(space >> (Update | Assign | SubBackcall)) >> not_(space >> '='); |
950 | 951 | ||
951 | IfLine = IfType >> space >> IfCond; | 952 | IfLine = IfType >> space >> IfCond; |
952 | WhileLine = WhileType >> space >> Exp; | 953 | WhileLine = WhileType >> space >> Exp; |