eRuby and matchit

Hugh Sasse hgs at
Tue Mar 13 06:24:11 EDT 2007

On Tue, 13 Mar 2007, Doug Kearns wrote:

> Tim,
> I noticed this recent ChangeLog entry.
> 2002-03-09  Tim Pope  <vim at>
> 	* ftplugin/ruby.vim: Skip class= and for= with matchit (really
> 	  belongs in ftplugin/eruby.vim).
> I've actually got a patch lying around for eRuby which I'll post later
> that attempts to fix this by joining both the b:match_words and
> b:match_skip values.  One of the problems with this approach, which I've
> mentioned to Benji, is having to parse the s:, S:, r: and R:
> abbreviations for b:match_skip.

Yes, the C embedded in Ruby stuff that I posted has a problem in that
any "if" in the C upsets the searches for mmatching (class|def|if|...)...end
in the surrounding ruby, but not as far as colouring is concerned, only
as far as % is concerned.  I wouldn't know where to start fixing that.


More information about the vim-ruby-devel mailing list