summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-19 13:41:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-19 13:41:44 +0000
commitf1b696480a2587d36feb6fbbd83d3af00e38cf07 (patch)
tree8d01db30b466ab23195d8aff19ae8a21986b654b /parse.y
parente82059ce6ee797f01d83eb7e5fc33f5c365aa776 (diff)
parse.y: assign to $$
* parse.y (command): assign to $$. should not rely upon undocumented behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61960 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 82fdb6f855..c2f4626b46 100644
--- a/parse.y
+++ b/parse.y
@@ -1354,6 +1354,7 @@ command : fcall command_args %prec tLOWEST
/*%%%*/
$1->nd_args = $2;
nd_set_last_loc($1, nd_last_loc($2));
+ $$ = $1;
/*% %*/
/*% ripper: command($1, $2) %*/
}