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, 3 insertions, 1 deletions
diff --git a/src/yuescript/yue_parser.cpp b/src/yuescript/yue_parser.cpp
index 77c5901..eaabf0d 100644
--- a/src/yuescript/yue_parser.cpp
+++ b/src/yuescript/yue_parser.cpp
@@ -350,7 +350,9 @@ YueParser::YueParser() {
350 350
351 ShortTabAppending = "[]" >> space >> Assign; 351 ShortTabAppending = "[]" >> space >> Assign;
352 352
353 BreakLoop = (expr("break") | "continue") >> not_alpha_num; 353 Break = key("break");
354 Continue = key("continue");
355 BreakLoop = (Break >> -(space >> Exp) | Continue) >> not_alpha_num;
354 356
355 Return = key("return") >> -(space >> (TableBlock | ExpListLow)); 357 Return = key("return") >> -(space >> (TableBlock | ExpListLow));
356 358