diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-08 14:05:58 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-11-08 14:06:46 +0900 |
| commit | 7750c61e29675e778f7d12119555fafbf85043c9 (patch) | |
| tree | d44dfe9fbaf5e71555c15aca603f9cfde270a91b /mrbgems | |
| parent | 8ff001ef30f243eaffc853e9ec327a104ecb255e (diff) | |
| download | mruby-7750c61e29675e778f7d12119555fafbf85043c9.tar.gz mruby-7750c61e29675e778f7d12119555fafbf85043c9.zip | |
Fixed a bug in keyword arguments in block parameters; fix #4810
This is caused by incomplete fix in #4746
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 848d2a933..55075a271 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -3329,11 +3329,13 @@ f_kw : f_label arg f_block_kw : f_label primary_value { - $$ = new_kw_arg(p, $1, $2); + $$ = new_kw_arg(p, $1, cons($2, locals_node(p))); + local_unnest(p); } | f_label { $$ = new_kw_arg(p, $1, 0); + local_unnest(p); } ; |
