summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-20 06:07:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-20 06:07:39 +0000
commitb682d78ff592acdd857ac5f81c4a0efd75a3fa82 (patch)
treef93da1503be892cd70770ebd5a5b9f4599ec72b3 /parse.y
parent6274f42d79b8f50f7d2c6520459e4c4d61332804 (diff)
downloadruby-b682d78ff592acdd857ac5f81c4a0efd75a3fa82.tar.gz
ruby-b682d78ff592acdd857ac5f81c4a0efd75a3fa82.tar.xz
ruby-b682d78ff592acdd857ac5f81c4a0efd75a3fa82.zip
* parse.y (mlhs_basic): fixed handling splat in middle of mlhs. a
patch from Andy Keep in [ruby-core:26163] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 711a065b0..202434c7e 100644
--- a/parse.y
+++ b/parse.y
@@ -1436,7 +1436,8 @@ mlhs_basic : mlhs_head
/*%%%*/
$$ = NEW_MASGN($1, NEW_POSTARG($3,$5));
/*%
- $$ = mlhs_add_star($1, $3);
+ $1 = mlhs_add_star($1, $3);
+ $$ = mlhs_add($1, $5);
%*/
}
| mlhs_head tSTAR