[ruby-cvs:68314] yui-knk:r61133 (trunk): parse.y: Fix locations of NODE_ARRAY of mlhs_head

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Dec 12 10:13:56 JST 2017


yui-knk	2017-12-12 10:13:56 +0900 (Tue, 12 Dec 2017)

  New Revision: 61133

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

  Log:
    parse.y: Fix locations of NODE_ARRAY of mlhs_head
    
    * parse.y: Fix to only include a range of mlhs_item
      (exclude ',' form range).
    
      e.g. The locations of the NODE_ARRAY is fixed:
    
      ```
      (a,) = 1,2
      ```
    
      * Before
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,1)-(1,3))
      ```
    
      * After
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,1)-(1,2))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list