diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-19 13:41:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-19 13:41:44 +0000 |
commit | f1b696480a2587d36feb6fbbd83d3af00e38cf07 (patch) | |
tree | 8d01db30b466ab23195d8aff19ae8a21986b654b | |
parent | e82059ce6ee797f01d83eb7e5fc33f5c365aa776 (diff) | |
download | ruby-f1b696480a2587d36feb6fbbd83d3af00e38cf07.tar.gz |
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
-rw-r--r-- | parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) %*/ } |