[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
Hi,
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.

Thanks,
Tilman

--
GnuPG key available at
http://code-monkey.de/files/tsauerbeck-public-key.asc

_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel

attachment0 (196 bytes) Download Attachment