Multi-line string interpolation parses under MRI but gives a parse error on
JRuby
---------------------------------------------------------------------------------
Key: JRUBY-3444
URL: http://jira.codehaus.org/browse/JRUBY-3444
Project: JRuby
Issue Type: Bug
Components: Parser
Affects Versions: JRuby 1.1.6
Reporter: David R. MacIver
Assignee: Thomas E Enebo
clusters = [[1, 2, 3], [4, 5, 6]]
puts "
#{clusters.zip((0...clusters.length).to_a).map do |c, i|
c.map{|t| "(#{t}, #{i}) " }
end.flatten.join(", ") }
"
Under ruby:
(1, 0) , (2, 0) , (3, 0) , (4, 1) , (5, 1) , (6, 1)
Under JRuby:
:1: foo.rb:4: , unexpected kDO_BLOCK (SyntaxError)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email