[ruby-cvs:68068] yui-knk:r60887 (trunk): parse.y: Fix a location of serial NODE_AND/NODE_OR

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Thu Nov 23 23:15:27 JST 2017


yui-knk	2017-11-23 23:15:27 +0900 (Thu, 23 Nov 2017)

  New Revision: 60887

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

  Log:
    parse.y: Fix a location of serial NODE_AND/NODE_OR
    
    * parse.y (logop_gen): Update the last location of
      NODE_AND/NODE_OR when NODE is appended to the last.
    
      e.g. The locations of NODE_AND is fixed:
    
      ```
      a && b && c
      ```
    
      * Before
    
      ```
      NODE_AND (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 6)
      ```
    
      * After
    
      ```
      NODE_AND (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 11)
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list