[ruby-cvs:68047] yui-knk:r60866 (trunk): parse.y: Fix the last location of NODE_LIT in %i

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Nov 21 08:12:43 JST 2017


yui-knk	2017-11-21 08:12:43 +0900 (Tue, 21 Nov 2017)

  New Revision: 60866

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

  Log:
    parse.y: Fix the last location of NODE_LIT in %i
    
      * parse.y: Use @2 to not include a range of ' '.
    
      e.g. The locations of NODE_LIT is fixed:
    
      ```
      %i[a]
      ```
    
      * Before
    
      ```
      NODE_LIT (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 5)
      ```
    
      * After
    
      ```
      NODE_LIT (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 4)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list