diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-01-10 14:38:15 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-01-16 15:08:51 +0900 |
| commit | ca837b1a24ab6a0d771d34ad4efd97c4ab6b2c16 (patch) | |
| tree | 1fc0d669a20255195bf2a3849a7ce7f5653b2598 /mrbgems/mruby-compiler/core/parse.y | |
| parent | 03e88b9ae0cebb9faad54376fff7e2ec86831e53 (diff) | |
| download | mruby-ca837b1a24ab6a0d771d34ad4efd97c4ab6b2c16.tar.gz mruby-ca837b1a24ab6a0d771d34ad4efd97c4ab6b2c16.zip | |
Allow `-> do rescue; end` as well as `proc do rescue; end` [Ruby2.6]
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 01269d8da..e4c258368 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -2568,7 +2568,7 @@ lambda_body : tLAMBEG compstmt '}' { $$ = $2; } - | keyword_do_LAMBDA compstmt keyword_end + | keyword_do_LAMBDA bodystmt keyword_end { $$ = $2; } |
