summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-09-08 00:22:26 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-09-08 00:28:03 +0900
commita3f5265fd104ec3812af6a918f375e23aa05a251 (patch)
tree4187af56750dde2c232b091ebf1e06877ef90b16
parent95f9d7c76d9e808099f89e5cf160306680dc5994 (diff)
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.
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 5408e1afac..a3b3cd7224 100644
--- a/parse.y
+++ b/parse.y
@@ -2614,7 +2614,7 @@ primary : literal
{
/*%%%*/
$$ = new_hash(p, $2, &@$);
- $$->nd_alen = TRUE;
+ $$->nd_brace = TRUE;
/*% %*/
/*% ripper: hash!(escape_Qundef($2)) %*/
}