Project

General

Profile

« Previous | Next » 

Revision 0b31ce00

Added by yui-knk (Kaneko Yuichiro) almost 8 years ago

parse.y: Fix locations of NODE_ARRAY in NODE_CALL(:=~)

  • parse.y (match_op_gen): Fix to only include a range of node2.

    e.g. The locations of the NODE_ARRAY is fixed:

    re =~ s1 
    • Before
    NODE_ARRAY (line: 1, code_range: (1,0)-(1,8)) 
    • After
    NODE_ARRAY (line: 1, code_range: (1,6)-(1,8)) 

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