More syntax highlighting fun
vim-ruby-devel at tpope.info
Mon Feb 26 10:15:29 EST 2007
On Mon, Feb 26, 2007 at 08:57:17PM +1100, Doug Kearns wrote:
> On Sat, Feb 24, 2007 at 07:47:22PM -0600, Tim Pope wrote:
> > 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:
> ...since we're being thorough. ;-)
Actually, this omission was intentional. I figure if the end is on
the next line, the far more likely explanation is the user simply
hasn't typed the method name yet. But we can try it this way too.
More information about the vim-ruby-devel