diff options
| author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-07 02:36:51 +0000 |
|---|---|---|
| committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-07 02:36:51 +0000 |
| commit | 2c018e9646436ca1320cce3fc06c1ef8dfcdee5d (patch) | |
| tree | 20b132743cf7f87858342a81a60590042de2679c /include/ruby/intern.h | |
| parent | d2d4839a390434af70c20f36065b7804597a7337 (diff) | |
parse.y: Fix locations of regexp
* parse.y (new_regexp_gen): Always set locations
to include locations of tREGEXP_BEG and tREGEXP_END.
e.g. The locations of the NODE_LIT is fixed:
```
/a/
```
* Before
```
NODE_LIT (line: 1, code_range: (1,1)-(1,2))
```
* After
```
NODE_LIT (line: 1, code_range: (1,0)-(1,3))
```
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/intern.h')
0 files changed, 0 insertions, 0 deletions
