diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-23 14:15:27 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-23 14:15:27 +0000 |
commit | ea03268471d9b234f379ab9abdec9341e2bcb976 (patch) | |
tree | f9e7c6076e8cdbc54a240303740274251079b002 /lib/irb | |
parent | 4bba9971f316f24db22bce899c1e060d9fa01860 (diff) | |
download | ruby-ea03268471d9b234f379ab9abdec9341e2bcb976.tar.gz |
parse.y: Fix a location of serial NODE_AND/NODE_OR
* parse.y (logop_gen): Update the last location of
NODE_AND/NODE_OR when NODE is appended to the last.
e.g. The locations of NODE_AND is fixed:
```
a && b && c
```
* Before
```
NODE_AND (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 6)
```
* After
```
NODE_AND (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 11)
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
0 files changed, 0 insertions, 0 deletions