1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: Use the correct alias for brace flag of hash literal

nd_alen and nd_brace is the same field, but nd_brace is more suitable
for this case.
This commit is contained in:
Yusuke Endoh 2019-09-08 00:22:26 +09:00
parent 95f9d7c76d
commit a3f5265fd1

View file

@ -2614,7 +2614,7 @@ primary : literal
{
/*%%%*/
$$ = new_hash(p, $2, &@$);
$$->nd_alen = TRUE;
$$->nd_brace = TRUE;
/*% %*/
/*% ripper: hash!(escape_Qundef($2)) %*/
}