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
NODE_DSTR (line: 3, code_range: (1,3)-(1,7))
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
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:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e