summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 8 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 8a6a3fee77..4ff369953a 100644
--- a/parse.y
+++ b/parse.y
@@ -485,6 +485,10 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem
$$ = 0;
}
}
+ | expr kRESCUE_MOD expr
+ {
+ $$ = NEW_RESCUE($1, NEW_RESBODY(0,$3,0), 0);
+ }
| primary_value '[' aref_args ']' tOP_ASGN command_call
{
NODE *args;
@@ -1417,6 +1421,10 @@ primary : literal
{
$$ = $3;
}
+ | kCASE opt_terms kELSE compstmt kEND
+ {
+ $$ = $4;
+ }
| kFOR block_var kIN {COND_PUSH(1);} expr_value do {COND_POP();}
compstmt
kEND