r204 - in trunk/vim/debian: . patches
Stefano Zacchiroli
zack@costa.debian.org
Sun, 08 May 2005 15:05:12 +0000
Author: zack
Date: 2005-05-08 15:05:10 +0000 (Sun, 08 May 2005)
New Revision: 204
Added:
trunk/vim/debian/patches/126_filetype.vim.diff
Modified:
trunk/vim/debian/changelog
Log:
set tex filetype on .cls tex classes
Modified: trunk/vim/debian/changelog
===================================================================
--- trunk/vim/debian/changelog 2005-05-08 08:12:13 UTC (rev 203)
+++ trunk/vim/debian/changelog 2005-05-08 15:05:10 UTC (rev 204)
@@ -15,6 +15,8 @@
+ Updated patch 118_ocaml.vim.diff (new upstream).
+ Added patch 124_errorformat.vim.diff, makes vim follow error directories
on "make -C". (closes: #276005)
+ + Added patch 126_filetype.vim.diff, set tex filetype on .cls TeX classes,
+ distinguishing them from smalltalk sources. (closes: #169716)
* Norbert Tretkowski <nobse@debian.org>:
+ Build-Depend on debhelper (>= 4.2.21), required for dh_desktop call.
Added: trunk/vim/debian/patches/126_filetype.vim.diff
===================================================================
--- trunk/vim/debian/patches/126_filetype.vim.diff 2005-05-08 08:12:13 UTC (rev 203)
+++ trunk/vim/debian/patches/126_filetype.vim.diff 2005-05-08 15:05:10 UTC (rev 204)
@@ -0,0 +1,20 @@
+diff -urN vim63/runtime/filetype.vim vim63.new/runtime/filetype.vim
+--- vim63/runtime/filetype.vim 2005-05-08 17:01:08.000000000 +0200
++++ vim63.new/runtime/filetype.vim 2005-05-08 16:57:42.000000000 +0200
+@@ -1363,8 +1363,14 @@
+ au BufNewFile,BufRead .slrnrc setf slrnrc
+ au BufNewFile,BufRead *.score setf slrnsc
+
+-" Smalltalk
+-au BufNewFile,BufRead *.st,*.cls setf st
++" Smalltalk (or TeX class)
++au BufNewFile,BufRead *.st setf st
++au BufNewFile,BufRead *.cls
++ \ if getline(1) =~ '^%' |
++ \ setf tex |
++ \ else |
++ \ setf st |
++ \ endif
+
+ " Smarty templates
+ au BufNewFile,BufRead *.tpl setf smarty