[BUG] Broken indentation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[BUG] Broken indentation

Tilman Sauerbeck
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

vim-ruby-devel mailing list
[hidden email]

attachment0 (196 bytes) Download Attachment