[ruby-cvs:68049] yui-knk:r60868 (trunk): parse.y: Fix the last location of NODE_STR in %w

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Nov 21 08:58:42 JST 2017


yui-knk	2017-11-21 08:58:42 +0900 (Tue, 21 Nov 2017)

  New Revision: 60868

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

  Log:
    parse.y: Fix the last location of NODE_STR in %w
    
      * parse.y: Use @2 to only include a range of tSTRING_CONTENT.
    
      e.g. The locations of NODE_STR is fixed:
    
      ```
      %w[a]
      ```
    
      * Before
    
      ```
      NODE_STR (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 5)
      ```
    
      * After
    
      ```
      NODE_STR (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