[ruby-cvs:73073] yui-knk:r65973 (trunk): Fix locations of NODE_UNDEF in undef with multiple args

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Sun Nov 25 21:31:36 JST 2018


yui-knk	2018-11-25 21:31:35 +0900 (Sun, 25 Nov 2018)

  New Revision: 65973

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

  Log:
    Fix locations of NODE_UNDEF in undef with multiple args
    
    * parse.y: Fix the beginning position of trailing NODE_UNDEF.
    
      e.g. The location of the NODE_UNDEF for `b` is fixed:
    
      ```
      undef a, b
      ```
    
      * Before
    
      ```
      NODE_UNDEF (line: 1, location: (1,6)-(1,10))
      ```
    
      * After
    
      ```
      NODE_UNDEF (line: 1, location: (1,9)-(1,10))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list