diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-01 13:40:03 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-01 13:40:03 +0000 |
commit | 5bf3657b9f06761a61d2b05e8c1e2904660d10b1 (patch) | |
tree | 414281b08a8b8b1570f9634067cc89786cbef156 /NEWS | |
parent | 857827e3eed915543ac9d4d2541179ea4ded8eee (diff) | |
download | ruby-5bf3657b9f06761a61d2b05e8c1e2904660d10b1.tar.gz |
parse.y: Fix locations of NODEs related to for statement
* parse.y: Fix to only include a range of for_var.
e.g. The locations of the NODE_ARGS and NODE_DVAR are fixed:
```
for a in m do n end
```
* Before
```
NODE_ARGS (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 19)
NODE_DVAR (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 19)
```
* After
```
NODE_ARGS (line: 1, first_lineno: 1, first_column: 4, last_lineno: 1, last_column: 5)
NODE_DVAR (line: 1, first_lineno: 1, first_column: 4, last_lineno: 1, last_column: 5)
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions