Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-01 26e08ba) (Java HotSpot(TM) Client VM 1.6.0_33) [Windows 7-x86-java]
-
Testcase included:yes
-
Number of attachments :
Description
This code snippet:
{{{
if a
Thread.new
}}
jruby responds with:
SyntaxError: repro.rb:5: syntax error, unexpected kEND
end
while MRI responds with the slightly more "helpful" error message:
repro.rb:5: syntax error, unexpected keyword_end, expecting '}'
Thanks!
-r
We haven't done anything to improve these errors in a long time, but I know Tom has talked about it....