summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorShugo Maeda <shugo@ruby-lang.org>2021-09-11 22:03:10 +0900
committerShugo Maeda <shugo@ruby-lang.org>2021-09-11 22:03:10 +0900
commit7686776c0563eeb269c5ffa1fc2cf42d4d31e222 (patch)
treeff38fc5ffa22b3d4fb67baccc48bb9350516f29a /parse.y
parent8d0315a2bbda2cdefeaf00ff1edcd90384d8951a (diff)
Hash values should be omitted in Ripper results
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 d4443d50d25..88ae901e6dd 100644
--- a/parse.y
+++ b/parse.y
@@ -5624,7 +5624,7 @@ assoc : arg_value tASSOC arg_value
if (!val) val = NEW_BEGIN(0, &@$);
$$ = list_append(p, NEW_LIST(NEW_LIT(ID2SYM($1), &@1), &@$), val);
/*% %*/
- /*% ripper: assoc_new!($1, id_is_var(p, get_id($1)) ? var_ref!($1) : vcall!($1)) %*/
+ /*% ripper: assoc_new!($1, Qnil) %*/
}
| tSTRING_BEG string_contents tLABEL_END arg_value
{