PATCH: Support for spell checking of comments

Doug Kearns djkea2 at
Tue Sep 9 02:21:38 EDT 2003

I've added the @Spell clusters requested by Luc Hermitte on the Vim ML

Index: syntax/ruby.vim
RCS file: /var/cvs/vim-ruby/vim-ruby/syntax/ruby.vim,v
retrieving revision 1.15
diff -u -r1.15 ruby.vim
--- syntax/ruby.vim	8 Sep 2003 14:18:41 -0000	1.15
+++ syntax/ruby.vim	8 Sep 2003 15:34:58 -0000
@@ -240,8 +240,8 @@
   syn match  rubySharpBang "\%^#!.*"
 syn keyword rubyTodo          FIXME NOTE TODO XXX contained
-syn match   rubyComment       "#.*" contains=rubySharpBang,rubyTodo
-syn region  rubyDocumentation start="^=begin" end="^=end.*$" contains=rubyTodo fold
+syn match   rubyComment       "#.*" contains=rubySharpBang,rubyTodo, at Spell
+syn region  rubyDocumentation start="^=begin" end="^=end.*$" contains=rubyTodo, at Spell fold
 " Note: this is a hack to prevent 'keywords' being highlighted as such when called as methods
 syn match rubyKeywordAsMethod "\.\@<!\.\(\s*\n\s*\)*\(alias\|and\|begin\|break\|case\|class\|def\|defined\|do\|else\)\>"	    transparent contains=NONE

More information about the vim-ruby-devel mailing list