Project

General

Profile

« Previous | Next » 

Revision 29317b1c

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

parse.y: Fix the last location of NODE_LIT in %i

  • parse.y: Use @2 to not include a range of ' '.

e.g. The locations of NODE_LIT is fixed:

%i[a]
  • Before
NODE_LIT (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 5)
  • After
NODE_LIT (line: 1, first_lineno: 1, first_column: 0, last_lineno: 1, last_column: 4)

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