Forum: Ruby BUG: ruby-mode.el : indentation after '||' disappears after

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jeremy H. (Guest)
on 2007-07-19 21:23
(Received via mailing list)
This is a minor bug but worth noting.  Here's some code indented by
ruby-mode.el (1.8.6-p36).

[snip]

foo do |x|
end

a ||
b

[snip]

The variable "b" should be indented, but it's not.  The indentation
appears properly if you remove the method call to foo , or remove the
block from that method call, or change the '||' operator to '&&'.  It
looks like an interaction between the '||' and the preceding block but
I don't have the elisp-fu to be sure.

Hope this helps,

Jeremy H.
This topic is locked and can not be replied to.