diff options
| author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-20 23:12:43 +0000 |
|---|---|---|
| committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-20 23:12:43 +0000 |
| commit | 29317b1c38daa1ce0aeb46c47178720af358cdfb (patch) | |
| tree | 072fd91003146996b4ccb2e534eeb85ea367cc30 /test/ruby/test_optimization.rb | |
| parent | 70595c76c2aa20b7c0c531829543796a715e37e3 (diff) | |
parse.y: Fix the last location of NODE_LIT in %i
* parse.y: Use @2 to not include a range of ' '.
e.g. The locations of NODE_LIT is fixed:
```
%i[a]
```
* Before
```
NODE_LIT (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 5)
```
* After
```
NODE_LIT (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@60866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_optimization.rb')
0 files changed, 0 insertions, 0 deletions
