parse.y: Fix locations of HEREDOC
parse.y (rb_parser_set_location_from_strterm_heredoc): Set locations based on rb_strterm_heredoc_t.
parse.y (yylex): Set yylloc based on rb_strterm_heredoc_t when parsing heredoc.
e.g. The locations of the NODE_DSTR is changed:
a <<STR 123 #{:a} STR
NODE_DSTR (line: 3, code_range: (3,0)-(1,7))
NODE_DSTR (line: 3, code_range: (1,3)-(1,7))
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
parse.y: Fix locations of HEREDOC
parse.y (rb_parser_set_location_from_strterm_heredoc):
Set locations based on rb_strterm_heredoc_t.
parse.y (yylex): Set yylloc based on rb_strterm_heredoc_t
when parsing heredoc.
e.g. The locations of the NODE_DSTR is changed:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e