[ruby-cvs:68287] yui-knk:r61106 (trunk): parse.y: Fix locations of NODE_DSTR generated by evstr2dstr_gen

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Dec 11 11:19:43 JST 2017


yui-knk	2017-12-11 11:19:43 +0900 (Mon, 11 Dec 2017)

  New Revision: 61106

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

  Log:
    parse.y: Fix locations of NODE_DSTR generated by evstr2dstr_gen
    
    * parse.y (evstr2dstr_gen): Fix to only include a range of node.
    
      e.g. The locations of the NODE_DSTR is fixed:
    
      ```
      %W[a #{b} c]
      ```
    
      * Before
    
      ```
      NODE_DSTR (line: 1, code_range: (1,3)-(1,9))
      ```
    
      * After
    
      ```
      NODE_DSTR (line: 1, code_range: (1,5)-(1,9))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list