[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

BUG: ruby-mode.el : indentation after '||' disappears after a block

Jeremy Henty

7/19/2007 4:36:00 PM

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 Henty