mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix location of NODE_LIT in p_kw
This commit is contained in:
parent
4641abf0a2
commit
3200d97e95
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
|
@ -4425,7 +4425,7 @@ p_kw : p_kw_label p_expr
|
|||
{
|
||||
error_duplicate_pattern_key(p, get_id($1), &@1);
|
||||
/*%%%*/
|
||||
$$ = list_append(p, NEW_LIST(NEW_LIT(ID2SYM($1), &@$), &@$), $2);
|
||||
$$ = list_append(p, NEW_LIST(NEW_LIT(ID2SYM($1), &@1), &@$), $2);
|
||||
/*% %*/
|
||||
/*% ripper: rb_ary_new_from_args(2, get_value($1), get_value($2)) %*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue