Project

General

Profile

« Previous | Next » 

Revision f8523d35

Added by yui-knk (Kaneko Yuichiro) over 7 years ago

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)
    

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e