[BUG] Broken indentation

Tilman Sauerbeck tilman at code-monkey.de
Mon Jan 23 14:09:57 EST 2006

I noticed vim-ruby fails to indent the following code snippet correctly.
Line numbers were added by me of course ;)

1 [
2 	[:foo, :bar]
3 ].each do |(one,two)|
4	blah
5 blah2
6 end

While line 5 is indented correctly, line 6 isn't.
If i replace line 4 with an empty string (""), the following line is
indented correctly.

If line 2 is removed, line 4 (resp now 3) isn't indented correctly
anymore either (it will be moved to column zero).

This bug is present in cvs HEAD.


GnuPG key available at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/vim-ruby-devel/attachments/20060123/a1d5aebe/attachment.bin

More information about the vim-ruby-devel mailing list