aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2020-02-20 13:39:26 +0800
committerLi Jin <dragon-fly@qq.com>2020-02-20 13:39:26 +0800
commit3a084cfad7aa8da8d2c4b7849347b0832ef8e87e (patch)
tree58704a96284a9011ce45b86ba59a8a227c2efc27 /src
parent0eaea3f979ef46fe195649ee18400f014957db26 (diff)
downloadyuescript-3a084cfad7aa8da8d2c4b7849347b0832ef8e87e.tar.gz
yuescript-3a084cfad7aa8da8d2c4b7849347b0832ef8e87e.tar.bz2
yuescript-3a084cfad7aa8da8d2c4b7849347b0832ef8e87e.zip
allow value list in assignment to be multiline fixing Moonscript issue 390.
Diffstat (limited to 'src')
-rw-r--r--src/MoonP/moon_parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MoonP/moon_parser.cpp b/src/MoonP/moon_parser.cpp
index 1ba8ad3..0b59776 100644
--- a/src/MoonP/moon_parser.cpp
+++ b/src/MoonP/moon_parser.cpp
@@ -241,7 +241,7 @@ MoonParser::MoonParser() {
241 CompFor = key("for") >> Space >> Variable >> sym('=') >> Exp >> sym(',') >> Exp >> -for_step_value; 241 CompFor = key("for") >> Space >> Variable >> sym('=') >> Exp >> sym(',') >> Exp >> -for_step_value;
242 CompClause = CompFor | CompForEach | key("when") >> Exp; 242 CompClause = CompFor | CompForEach | key("when") >> Exp;
243 243
244 Assign = sym('=') >> Seperator >> (With | If | Switch | TableBlock | Exp >> *((sym(',') | sym(';')) >> Exp)); 244 Assign = sym('=') >> Seperator >> (With | If | Switch | TableBlock | Exp >> *((sym(',') | sym(';')) >> White >> Exp));
245 245
246 update_op = 246 update_op =
247 expr("..") | 247 expr("..") |