summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y32
1 files changed, 16 insertions, 16 deletions
diff --git a/parse.y b/parse.y
index 302156588..7e8d8b42a 100644
--- a/parse.y
+++ b/parse.y
@@ -426,6 +426,22 @@ expr : kRETURN ret_args
yyerror("return appeared outside of method");
$$ = NEW_RETURN($2);
}
+ | kBREAK
+ {
+ $$ = NEW_BREAK();
+ }
+ | kNEXT
+ {
+ $$ = NEW_NEXT();
+ }
+ | kREDO
+ {
+ $$ = NEW_REDO();
+ }
+ | kRETRY
+ {
+ $$ = NEW_RETRY();
+ }
| command_call
| expr kAND expr
{
@@ -1343,22 +1359,6 @@ primary : literal
local_pop();
in_single--;
}
- | kBREAK
- {
- $$ = NEW_BREAK();
- }
- | kNEXT
- {
- $$ = NEW_NEXT();
- }
- | kREDO
- {
- $$ = NEW_REDO();
- }
- | kRETRY
- {
- $$ = NEW_RETRY();
- }
then : term
| kTHEN