[ruby-cvs:68244] yui-knk:r61063 (trunk): parse.y: Fix locations of xstring

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Thu Dec 7 11:25:37 JST 2017


yui-knk	2017-12-07 11:25:37 +0900 (Thu, 07 Dec 2017)

  New Revision: 61063

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61063

  Log:
    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))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list