Skip to content

Commit

Permalink
Fixed ruby_parser for masgn with splat on lhs
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 4367]
  • Loading branch information
zenspider committed Oct 15, 2008
1 parent daaf57a commit 4571af6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ruby_parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -317,19 +317,19 @@ rule
}
| mlhs_head tSTAR mlhs_node
{
result = s(:masgn, val[0], val[2]);
result = s(:masgn, val[0] << s(:splat, val[2]));
}
| mlhs_head tSTAR
{
result = s(:masgn, val[0], s(:splat))
result = s(:masgn, val[0] << s(:splat))
}
| tSTAR mlhs_node
{
result = s(:masgn, nil, val[1]);
result = s(:masgn, s(:array, s(:splat, val[1])))
}
| tSTAR
{
result = s(:masgn, nil, s(:splat))
result = s(:masgn, s(:array, s(:splat)))
}
mlhs_item: mlhs_node
Expand Down

0 comments on commit 4571af6

Please sign in to comment.