[ruby-cvs:68036] yui-knk:r60855 (trunk): Update the last location of NODE_BLOCK

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Mon Nov 20 08:59:32 JST 2017


yui-knk	2017-11-20 08:59:32 +0900 (Mon, 20 Nov 2017)

  New Revision: 60855

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

  Log:
    Update the last location of NODE_BLOCK
    
    * parse.y (block_append_gen): Update the last
      location of NODE_BLOCK when a tail is appended.
    
      e.g. The locations of NODE_BLOCK is fixed:
    
      ```
      a; b; c
      ```
    
      * Before
    
      ```
      NODE_BLOCK (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 4)
      ```
    
      * After
    
      ```
      NODE_BLOCK (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 7)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list