More syntax highlighting fun

Doug Kearns dougkearns at gmail.com
Mon Feb 26 04:57:17 EST 2007


On Sat, Feb 24, 2007 at 07:47:22PM -0600, Tim Pope wrote:

<snip>
 
> To further the original point, even the following is valid:
> 
> def end; end
> 
> Yes, end really can be a method name.  So I'll be changing the pattern
> to something like "\%(\<def\s\+\)\@<!\<end\>".  This still doesn't fix
> the indenting, but that's a much tougher nut to crack.

I changed this to use \_s to allow for:

def
  end
end

...since we're being thorough. ;-)

Regards,
Doug


More information about the vim-ruby-devel mailing list