Fix location of NODE_LIT in p_kw

This commit is contained in:
Kazuki Tsujimoto 2022-02-19 18:45:36 +09:00
parent 4641abf0a2
commit 3200d97e95
No known key found for this signature in database
GPG Key ID: BCEA306C49B81CD7

View File

@ -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)) %*/
}