I'm trying to run rails app on jruby.
In this app i use rutils plugin. jruby fail on loading from this plugin:
http://rutils.rubyforge.org/svn/trunk/lib/countries/countries.rb
with following error:
countries.rb:1771: can't find string "EOF" anywhere before EOF (SyntaxError)
On MRI ruby app works ok.
I browse the code and find that problem is in how LexerSource.matchString called.
It allways called like this: src.matchString("expectedString" + '\n', indent);
I remove '\n' from call and add parameter to match string until next line or end of file.
This works perfectly for me and all test cases passed.
Patch and test attached.