diff options
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |