[ruby-cvs:68255] yui-knk:r61074 (trunk): parse.y: Fix locations of modifier_rescue

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Fri Dec 8 09:33:38 JST 2017


yui-knk	2017-12-08 09:33:38 +0900 (Fri, 08 Dec 2017)

  New Revision: 61074

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

  Log:
    parse.y: Fix locations of modifier_rescue
    
    * parse.y: Fix to only include a range from modifier_rescue
      to stmt (or arg).
    
      e.g. The locations of the NODE_RESBODY is fixed:
    
      ```
      a rescue 1
      ```
    
      * Before
    
      ```
      NODE_RESBODY (line: 1, code_range: (1,0)-(1,10))
      ```
    
      * After
    
      ```
      NODE_RESBODY (line: 1, code_range: (1,2)-(1,10))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list