Indent problems with symbols containing keywords - solved?
cezary.baginski at gmail.com
Wed Mar 25 14:17:31 EDT 2009
I tried to git-clone from rubyforge instead of git hub, which was dumb.
HEAD works fine, thanks. Sorry for the trouble.
Tim Pope wrote:
> On Tue, Mar 17, 2009 at 12:51:25AM +0100, Cezary Bagiński wrote:
>> The following gives the wrong indent (vim 7.1.314, Ubuntu):
>> ---------(after indent its the same)-------
>> class AAA
>> def aaa
>> a = [ :title,
>> It seems the 'until' is matched, even when it's a symbol. I dug through
>> the 'syntax/ruby.vim' I already had, since the rubyforge git access is
>> broken (?).
>> The following is the best I could think of:
>> add the \@<! pattern to ignore symbols, replacing all instances of
>> keyword matchers, like:
>> I did it for just the until keyword and it seems to work fine.
> This appears to already be in effect in the latest version of Vim-Ruby.
> vim-ruby-devel mailing list
> vim-ruby-devel at rubyforge.org
More information about the vim-ruby-devel