summaryrefslogtreecommitdiff
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
commit14f13abb85df5861bd5fb684da88ccba22651e79 (patch)
treef93da1503be892cd70770ebd5a5b9f4599ec72b3 /parse.y
parent02ddc9a8935669703141668a3777d9bce1f42509 (diff)
* parse.y (mlhs_basic): fixed handling splat in middle of mlhs. a
patch from Andy Keep in [ruby-core:26163] git-svn-id: svn+ssh://ci.ruby-lang.org/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 711a065b0f..202434c7ef 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