Commit bd50273b authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #3404 from clayton-shopify/fix-block-params

Fix incorrect parsing of block parameters.
parents c48aef0b 797ff625
...@@ -2448,7 +2448,7 @@ block_param : f_arg ',' f_block_optarg ',' f_rest_arg opt_f_block_arg ...@@ -2448,7 +2448,7 @@ block_param : f_arg ',' f_block_optarg ',' f_rest_arg opt_f_block_arg
} }
| f_arg ',' | f_arg ','
{ {
$$ = new_args(p, $1, 0, 1, 0, 0); $$ = new_args(p, $1, 0, 0, 0, 0);
} }
| f_arg ',' f_rest_arg ',' f_arg opt_f_block_arg | f_arg ',' f_rest_arg ',' f_arg opt_f_block_arg
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment