PATCH: fix ignored shebang highlighting
Doug Kearns
djkea2 at mugca.its.monash.edu.au
Tue Aug 26 22:29:36 EDT 2003
Apparently this never worked. :-)
Regards,
Doug
Index: syntax/ruby.vim
===================================================================
RCS file: /var/cvs/vim-ruby/vim-ruby/syntax/ruby.vim,v
retrieving revision 1.10
diff -u -r1.10 ruby.vim
--- syntax/ruby.vim 25 Aug 2003 14:31:33 -0000 1.10
+++ syntax/ruby.vim 26 Aug 2003 11:08:25 -0000
@@ -232,12 +232,12 @@
" Comments and Documentation
if version < 600
- syn match rubySharpBang "#!.*"
+ syn match rubySharpBang "^#!.*" contained
else
syn match rubySharpBang "\%^#!.*"
endif
syn keyword rubyTodo FIXME NOTE TODO XXX contained
-syn match rubyComment "#.*" contains=rubyTodo
+syn match rubyComment "#.*" contains=rubySharpBang,rubyTodo
syn region rubyDocumentation start="^=begin" end="^=end.*$" contains=rubyTodo fold
" Note: this is a hack to prevent 'keywords' being highlighted as such when called as methods
More information about the vim-ruby-devel
mailing list