Fixed a bug in keyword arguments in block parameters; fix #4810

This is caused by incomplete fix in #4746
parent 8ff001ef
......@@ -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);
}
;
......
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