PATCH: add folding support to __END__ directive data sections

Doug Kearns djkea2 at mugca.its.monash.edu.au
Fri Aug 29 01:41:04 EDT 2003


Index: syntax/ruby.vim
===================================================================
RCS file: /var/cvs/vim-ruby/vim-ruby/syntax/ruby.vim,v
retrieving revision 1.12
diff -u -r1.12 ruby.vim
--- syntax/ruby.vim	27 Aug 2003 08:10:19 -0000	1.12
+++ syntax/ruby.vim	28 Aug 2003 14:34:06 -0000
@@ -254,7 +254,7 @@
 syn match rubyKeywordAsMethod "\.\@<!\.\(\s*\n\s*\)*\(public\|require\|raise\|throw\|trap\)\>"			transparent contains=NONE
 
 " __END__ Directive
-syn region rubyData matchgroup=rubyDataDirective start="^__END__$" matchgroup=NONE end="." skip="."
+syn region rubyData matchgroup=rubyDataDirective start="^__END__$" matchgroup=NONE end="." skip="." fold
 
 " Define the default highlighting.
 " For version 5.7 and earlier: only when not done already


More information about the vim-ruby-devel mailing list