[BUG] Broken indentation

Gavin Sinclair gsinclair at soyabean.com.au
Sun Apr 10 08:44:27 EDT 2005

On Sunday, April 10, 2005, 10:23:19 PM, Nikolai wrote:

> Tilman Sauerbeck, April 10:

>> here's a snippet of code that isn't indented correctly by Vim:
>> foo do
>>     bar rescue nil
>>     end
>> The final "end" should be placed in column 0, but it's not.

> In no way am I going to attempt to fix this.  You go right ahead and
> write your code appropriately instead:

> foo do
>   bar
> rescue
>   nil
> end

Is that valid Ruby?  (I wish it was.)  You need an explicit 'begin ...
end'.  Tilman's point stands.


More information about the vim-ruby-devel mailing list