r309 - in trunk/vim/debian: . patches
Stefano Zacchiroli
zack at costa.debian.org
Sun Sep 18 21:29:01 UTC 2005
Author: zack
Date: 2005-09-18 21:29:00 +0000 (Sun, 18 Sep 2005)
New Revision: 309
Added:
trunk/vim/debian/patches/143_eruby.vim.diff
Modified:
trunk/vim/debian/changelog
Log:
patch for eruby highlighting
Modified: trunk/vim/debian/changelog
===================================================================
--- trunk/vim/debian/changelog 2005-09-18 21:09:40 UTC (rev 308)
+++ trunk/vim/debian/changelog 2005-09-18 21:29:00 UTC (rev 309)
@@ -12,6 +12,8 @@
configuration files sytnax highlighting. (closes: #322850)
+ Added patch 142_filetype.vim.diff, which extends dch highlighting
to Debian NEWS files. (closes: #328081)
+ + Added patch 143_eruby.vim.diff, which adds support for eruby
+ highlighting. (closes: #315902)
-- Debian VIM Maintainers <pkg-vim-maintainers at lists.alioth.debian.org> Sat, 03 Sep 2005 01:11:09 +0200
Added: trunk/vim/debian/patches/143_eruby.vim.diff
===================================================================
--- trunk/vim/debian/patches/143_eruby.vim.diff 2005-09-18 21:09:40 UTC (rev 308)
+++ trunk/vim/debian/patches/143_eruby.vim.diff 2005-09-18 21:29:00 UTC (rev 309)
@@ -0,0 +1,56 @@
+diff -urN vim63/runtime/filetype.vim vim63.new/runtime/filetype.vim
+--- vim63/runtime/filetype.vim 2005-09-18 23:20:33.000000000 +0200
++++ vim63.new/runtime/filetype.vim 2005-09-18 23:20:04.000000000 +0200
+@@ -1257,6 +1257,9 @@
+ " Ruby
+ au BufNewFile,BufRead *.rb,*.rbw,*.gem,*.gemspec setf ruby
+
++" Embedded Ruby
++au BufNewFile,BufRead *.rhtml setf eruby
++
+ " S-lang (or shader language!)
+ au BufNewFile,BufRead *.sl setf slang
+
+diff -urN vim63/runtime/syntax/eruby.vim vim63.new/runtime/syntax/eruby.vim
+--- vim63/runtime/syntax/eruby.vim 1970-01-01 01:00:00.000000000 +0100
++++ vim63.new/runtime/syntax/eruby.vim 2005-09-18 23:18:11.000000000 +0200
+@@ -0,0 +1,39 @@
++" Vim syntax file
++" Language: eruby
++" Maintainer: Michael Brailsford <brailsmt at yahoo.com>
++" Installation:
++" To automatilcally load this file when a .rhtml file is opened, add the
++" following lines to ~/.vim/filetype.vim:
++"
++" augroup filetypedetect
++" au! BufRead,BufNewFile *.rhtml setfiletype eruby
++" augroup END
++"
++" You will have to restart vim for this to take effect. In any case it
++" is a good idea to read ":he new-filetype" so that you know what is going
++" on, and why the above lines work.
++
++if version < 600
++ syntax clear
++elseif exists("b:current_syntax")
++ finish
++endif
++
++"Source the html syntax file
++ru! syntax/html.vim
++"Set the filetype to html to load the html ftplugins
++set ft=html
++unlet b:current_syntax
++
++"Put the ruby syntax file in @rubyTop
++syn include @rubyTop syntax/ruby.vim
++
++syn region erubyBlock matchgroup=erubyRubyDelim start=#<%=\?# end=#%># keepend containedin=ALL contains=@rubyTop,erubyEnd
++syn region erubyComment start=+<%#+ end=#%># keepend
++syn match erubyEnd #\<end\>#
++
++hi link erubyRubyDelim todo
++hi link erubyComment comment
++hi link erubyEnd rubyControl
++
++" vim: set ts=4 sw=4:
More information about the pkg-vim-maintainers
mailing list