ruby-changes:57656
From: Yusuke <ko1@a...>
Date: Sun, 8 Sep 2019 00:35:21 +0900 (JST)
Subject: [ruby-changes:57656] a3f5265fd1 (master): parse.y: Use the correct alias for brace flag of hash literal
https://git.ruby-lang.org/ruby.git/commit/?id=a3f5265fd1 From a3f5265fd104ec3812af6a918f375e23aa05a251 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 8 Sep 2019 00:22:26 +0900 Subject: 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. diff --git a/parse.y b/parse.y index 5408e1a..a3b3cd7 100644 --- a/parse.y +++ b/parse.y @@ -2614,7 +2614,7 @@ primary : literal https://github.com/ruby/ruby/blob/trunk/parse.y#L2614 { /*%%%*/ $$ = new_hash(p, $2, &@$); - $$->nd_alen = TRUE; + $$->nd_brace = TRUE; /*% %*/ /*% ripper: hash!(escape_Qundef($2)) %*/ } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/