aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-11 01:27:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-11 01:27:24 +0000
commitba8a904f95f0ba6879f3e0309add3b902f9fbbfc (patch)
tree7998cf9313f4c5e462b6933f5067f13d6974ce50 /parse.y
parentb1b909d0cae979a8661219e58531694479e46f8d (diff)
downloadruby-ba8a904f95f0ba6879f3e0309add3b902f9fbbfc.tar.gz
separate hash literal and keyword arguments
* compile.c (compile_array_keyword_arg): separate keyword splat inside hash literal from argument list. * parse.y (rparen): flag hash literal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index c12b80cc06..0fb5605345 100644
--- a/parse.y
+++ b/parse.y
@@ -2546,6 +2546,7 @@ primary : literal
{
/*%%%*/
$$ = new_hash($2);
+ $$->nd_alen = TRUE;
/*%
$$ = dispatch1(hash, escape_Qundef($2));
%*/