Project

General

Profile

Actions

Bug #816

closed

Unexpected syntax error with: if true and not\n false

Bug #816: Unexpected syntax error with: if true and not\n false

Added by jpedrosa (Joao Pedrosa) almost 17 years ago. Updated over 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:20252]

Description

=begin
ruby -v so.rb
ruby 1.8.7 (2008-11-11 patchlevel 73) [i686-linux]
"yay"

ruby1.9 -v so.rb
ruby 1.9.1 (2008-12-01 revision 20437) [i686-linux]
so.rb:2: syntax error, unexpected '\n'
so.rb:3: warning: unused literal ignored
so.rb:5: syntax error, unexpected keyword_end, expecting $end

cat so.rb

if true and not
false
p 'yay'
end
=end

Actions

Also available in: PDF Atom