From: Jason Thomas Date: 2010-08-12T12:28:53+09:00 Subject: [ruby-core:31683] [Bug #2763] ruby-lex hangs if there is no newline at end of file Issue #2763 has been updated by Jason Thomas. I verified this bug exists in ruby-1.9.1-p378 on my Mac but has been fixed in ruby-1.9.2-rc2. Here is some example code to show the problem: require 'irb/ruby-lex' lex = RubyLex.new lex.set_input(File.open("test.rb")) while token = lex.token puts token end If test.rb does not have a newline at the end of the file it will loop endlessly in 1.9.1 but not in 1.9.2-rc2. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2763 ---------------------------------------- http://redmine.ruby-lang.org