[ruby-cvs:68139] yui-knk:r60958 (trunk): parse.y: Fix a location of hash keys

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Fri Dec 1 15:32:59 JST 2017


yui-knk	2017-12-01 15:32:59 +0900 (Fri, 01 Dec 2017)

  New Revision: 60958

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

  Log:
    parse.y: Fix a location of hash keys
    
    * parse.y: Use @1 to only include a range of tLABEL.
    
      e.g. The locations of the NODE_LIT(:b) is fixed:
    
      ```
      a(1, b: 10)
      ```
    
      * Before
    
      ```
      NODE_LIT (line: 1, first_lineno: 1, first_column: 5, last_lineno: 1, last_column: 10)
      ```
    
      * After
    
      ```
      NODE_LIT (line: 1, first_lineno: 1, first_column: 5, last_lineno: 1, last_column: 7)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list