[ruby-cvs:68192] yui-knk:r61011 (trunk): parse.y: Fix a location of NODE_BLOCK_PASS

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Dec 4 17:20:07 JST 2017


yui-knk	2017-12-04 17:20:07 +0900 (Mon, 04 Dec 2017)

  New Revision: 61011

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

  Log:
    parse.y: Fix a location of NODE_BLOCK_PASS
    
    * parse.y (arg_append_gen): Update the last location of
      NODE_BLOCK_PASS when NODE is appended to nd_head.
    
      e.g. The locations of the NODE_BLOCK_PASS is fixed:
    
      ```
      o[1, &bl] = :c
      ```
    
      * Before
    
      ```
      NODE_BLOCK_PASS (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 8)
      ```
    
      * After
    
      ```
      NODE_BLOCK_PASS (line: 1, first_lineno: 1, first_column: 2, last_lineno: 1, last_column: 14)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list