A slight improvement to syntax/eruby.vim

Nikolai Weibull now at bitwi.se
Mon Aug 14 17:10:39 EDT 2006


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

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

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

  nikolai


More information about the vim-ruby-devel mailing list