summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorKazuki Tsujimoto <kazuki@callcc.net>2022-02-19 18:45:36 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2022-02-19 18:45:36 +0900
commit3200d97e95e5d84483b3df46dc54448a82820b9d (patch)
tree6cd5744a6529cbbb87aea085b2342ce2a91106f1 /parse.y
parent4641abf0a236076aa9e1e712d810ad80bee81e4d (diff)
Fix location of NODE_LIT in p_kw
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 32d4949869..0d2ccaaf03 100644
--- a/parse.y
+++ b/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)) %*/
}