rubyFunction, rubyClass, and rubyModule no longer highlighted
Doug Kearns
dougkearns at gmail.com
Sun Feb 18 22:01:50 EST 2007
On Mon, Feb 19, 2007 at 12:48:36PM +1100, Doug Kearns wrote:
> On Mon, Feb 19, 2007 at 12:55:46AM +0100, Nikolai Weibull wrote:
> > On 2/18/07, Tim Pope <vim-ruby-devel at tpope.info> wrote:
> >
> > > A much simpler pattern (and one that actually works) is
> > >
> > > syn region rubyFunction matchgroup=rubyControl start="\<def\>\s*" end="\ze\%(\s\|(\|;\|$\)" oneline
> >
> > Even simpler (and faster):
> >
> > syn region rubyFunction matchgroup=rubyDefine start="\<def\>\ze\s*"
> > end="\ze\%([[:space:](;:#]\|$\)" oneline
>
> Why have you included the semicolon in the end pattern? def Foo::bar; end
colon
<snip>
Regards,
Doug
More information about the vim-ruby-devel
mailing list