[ruby-cvs:68191] yui-knk:r61010 (trunk): parse.y: Fix a location of NODE_ARGSCAT

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Dec 4 16:50:42 JST 2017


yui-knk	2017-12-04 16:50:42 +0900 (Mon, 04 Dec 2017)

  New Revision: 61010

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

  Log:
    parse.y: Fix a location of NODE_ARGSCAT
    
    * parse.y (arg_append_gen): Update the last location of
      NODE_ARGSCAT when NODE is appended to nd_body.
    
      e.g. The locations of the NODE_ARGSCAT is fixed:
    
      ```
      m(*a, :b, :c)
      ```
    
      * Before
    
      ```
      NODE_ARGSCAT (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 8)
      ```
    
      * After
    
      ```
      NODE_ARGSCAT (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 12)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list