diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-06 15:31:15 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-06 15:31:15 +0000 |
commit | 218ac97bd87c490e46a0dffb6d9dcfdb1374ffca (patch) | |
tree | 74f83f9abaa17c263ccc606f8a231b984115559c /parse.y | |
parent | 756009186bceca331a18ce91604b03027432bf4b (diff) |
merge revision(s) 65460: [Backport #15271]
parse.y: last location from bison
* parse.y (command): set the last location from the location
managed by bison, so that other nodes are not needed.
[ruby-core:89648] [Bug #15271]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_5@65581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1673,7 +1673,7 @@ command : fcall command_args %prec tLOWEST /*%%%*/ $$ = $1; $$->nd_args = $2; - nd_set_last_loc($1, nd_last_loc($2)); + nd_set_last_loc($1, @2.last_loc); /*% $$ = dispatch2(command, $1, $2); %*/ @@ -1686,7 +1686,7 @@ command : fcall command_args %prec tLOWEST fixpos($$, $1); /*%%%*/ $$->nd_loc = @$; - nd_set_last_loc($1, nd_last_loc($2)); + nd_set_last_loc($1, @2.last_loc); /*% %*/ } |