Project

General

Profile

« Previous | Next » 

Revision d2d4839a

Added by yui-knk (Kaneko Yuichiro) over 7 years ago

parse.y: Fix locations of xstring

  • parse.y (new_xstring_gen): Always set locations
    to include locations of tXSTRING_BEG and tSTRING_END.

    e.g. The locations of the NODE_XSTR is fixed:

    `a`
    
    • Before
    NODE_XSTR (line: 1, code_range: (1,1)-(1,2))
    
    • After
    NODE_XSTR (line: 1, code_range: (1,0)-(1,3))
    

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e