A slight improvement to syntax/eruby.vim

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

A slight improvement to syntax/eruby.vim

Nikolai Weibull-11
Here's a totally lame non-patch for syntax/eruby.vim:

syn region  erubyBlock    matchgroup=erubyDelimiter start="<%%\@!-\="
end="-\=%>" contains=@rubyTop       containedin=ALLBUT,@erubyRegions
syn region  erubyExpression matchgroup=erubyDelimiter start="<%="
 end="-\=%>" contains=@rubyTop       containedin=ALLBUT,@erubyRegions
syn region  erubyComment    matchgroup=erubyDelimiter start="<%#"
 end="-\=%>" contains=rubyTodo,@Spell containedin=ALLBUT,@erubyRegions
keepend

One may specify the "trim mode" to be, well, "trim" using "-" on the delimiters.

  nikolai
_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel
Reply | Threaded
Open this post in threaded view
|

Re: A slight improvement to syntax/eruby.vim

Doug Kearns
On Mon, Aug 14, 2006 at 11:10:39PM +0200, Nikolai Weibull wrote:

> Here's a totally lame non-patch for syntax/eruby.vim:
>
> syn region  erubyBlock    matchgroup=erubyDelimiter start="<%%\@!-\="
> end="-\=%>" contains=@rubyTop       containedin=ALLBUT,@erubyRegions
> syn region  erubyExpression matchgroup=erubyDelimiter start="<%="
>  end="-\=%>" contains=@rubyTop       containedin=ALLBUT,@erubyRegions
> syn region  erubyComment    matchgroup=erubyDelimiter start="<%#"
>  end="-\=%>" contains=rubyTodo,@Spell containedin=ALLBUT,@erubyRegions
> keepend
>
> One may specify the "trim mode" to be, well, "trim" using "-" on the delimiters.

Applied. Thanks!

Regards,
Doug
_______________________________________________
vim-ruby-devel mailing list
[hidden email]
http://rubyforge.org/mailman/listinfo/vim-ruby-devel