From: Jason Thomas Date: 2010-02-19T07:47:26+09:00 Subject: [ruby-core:28248] [Bug #2763] ruby-lex hangs if there is no newline at end of file Bug #2763: ruby-lex hangs if there is no newline at end of file http://redmine.ruby-lang.org/issues/show/2763 Author: Jason Thomas Status: Open, Priority: Normal Category: core ruby -v: ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] When calling RubyLex.token in a while loop, the parser spins returning TkIDENTIFIER if there is no newline at the end of the file. This bug is related to the following issue in RubyForge: http://rubyforge.org/tracker/?group_id=426&atid=1698&func=detail&aid=1745. This was fixed but seems to be reintroduced in Ruby 1.9. ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32] ---------------------------------------- http://redmine.ruby-lang.org