diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-20 23:58:42 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-20 23:58:42 +0000 |
commit | c9c36f263351386172c349f35ea27a19053386e1 (patch) | |
tree | 27952ad463cabf960da7e1590ec84b69ea8a049f /parse.y | |
parent | 7fb1faa0c644011cc406c759a470876baad94be9 (diff) | |
download | ruby-c9c36f263351386172c349f35ea27a19053386e1.tar.gz |
parse.y: Fix the last location of NODE_STR in %w
* parse.y: Use @2 to only include a range of tSTRING_CONTENT.
e.g. The locations of NODE_STR is fixed:
```
%w[a]
```
* Before
```
NODE_STR (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 5)
```
* After
```
NODE_STR (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 4)
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4101,7 +4101,7 @@ qword_list : /* none */ | qword_list tSTRING_CONTENT ' ' { /*%%%*/ - $2->nd_loc = @$; + $2->nd_loc = @2; $$ = list_append($1, $2, &@$); /*% $$ = dispatch2(qwords_add, $1, $2); |