PATCH: fix b:match_skip pattern

Doug Kearns dougkearns at gmail.com
Thu Sep 8 02:09:01 EDT 2005


Need to escape the \'s...

Regards,
Doug


Index: ftplugin/ruby.vim
===================================================================
RCS file: /var/cvs/vim-ruby/vim-ruby/ftplugin/ruby.vim,v
retrieving revision 1.8
diff -u -r1.8 ruby.vim
--- ftplugin/ruby.vim	2 Sep 2005 14:45:32 -0000	1.8
+++ ftplugin/ruby.vim	8 Sep 2005 05:52:37 -0000
@@ -35,8 +35,8 @@
      \ '\%(^\|[^.]\)\@<=\<end\>'
   let b:match_skip =
      \ "synIDattr(synID(line('.'),col('.'),0),'name') =~ '" .
-     \ "\<ruby\%(String\|StringDelimiter\|ASCIICode\|Interpolation\|" .
-     \ "NoInterpolation\|Escape\|Comment\|Documentation\)\>'"
+     \ "\\<ruby\\%(String\\|StringDelimiter\\|ASCIICode\\|Interpolation\\|" .
+     \ "NoInterpolation\\|Escape\\|Comment\\|Documentation\\)\\>'"
 
 endif
 


More information about the vim-ruby-devel mailing list