[ruby-cvs:68311] yui-knk:r61130 (trunk): parse.y: Fix locations of NODE_ARRAY in NODE_CALL(:=~)

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Tue Dec 12 09:28:30 JST 2017


yui-knk	2017-12-12 09:28:29 +0900 (Tue, 12 Dec 2017)

  New Revision: 61130

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

  Log:
    parse.y: Fix locations of NODE_ARRAY in NODE_CALL(:=~)
    
    * parse.y (match_op_gen): Fix to only include a range of node2.
    
      e.g. The locations of the NODE_ARRAY is fixed:
    
      ```
      re =~ s1
      ```
    
      * Before
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,0)-(1,8))
      ```
    
      * After
    
      ```
      NODE_ARRAY (line: 1, code_range: (1,6)-(1,8))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list