[ruby-cvs:68377] yui-knk:r61196 (trunk): parse.y: Fix the locations of an empty script

yui-knk at ruby-lang.org yui-knk at ruby-lang.org
Wed Dec 13 08:48:50 JST 2017


yui-knk	2017-12-13 08:48:50 +0900 (Wed, 13 Dec 2017)

  New Revision: 61196

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

  Log:
    parse.y: Fix the locations of an empty script
    
    * parse.y: Fix the locations of NODE_BEGIN in
      an empty script.
    
      ```
      ruby --dump=p -e ''
      ```
    
      * Before
    
      ```
      NODE_BEGIN (line: 1, code_range: (1,1)-(1,1))
      ```
    
      * After
    
      ```
      NODE_BEGIN (line: 1, code_range: (1,0)-(1,0))
      ```

  Modified files:
    trunk/parse.y


More information about the ruby-cvs mailing list