summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authoryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-06 03:09:55 +0000
committeryui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-12-06 03:09:55 +0000
commitc1bd83cef742b7ff68d02cc490d018c6ac4d8c13 (patch)
treee9261f1b2ecc8ebe2b9a7c1ff7b287202a0fd95a /eval.c
parentb7c17ad14d98e568e99811566d0d5989c9a83f2c (diff)
parse.y: Fix the first location of heredoc identifier
* parse.y (parser_heredoc_identifier): Put length of term at the head of rb_strterm_heredoc_struct.term. * parse.y (rb_parser_set_location_from_strterm_heredoc): Use length of term to calculate first_loc.column. e.g. The locations of the NODE_DSTR is fixed: ``` a <<STR 123 #{:a} STR ``` * Before ``` NODE_DSTR (line: 3, code_range: (1,3)-(1,7)) ``` * After ``` NODE_DSTR (line: 3, code_range: (1,2)-(1,7)) ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
0 files changed, 0 insertions, 0 deletions