r287 - in trunk/vim/debian: . patches

Matthijs Mohlmann active2-guest at costa.debian.org
Mon Aug 15 07:24:46 UTC 2005


Author: active2-guest
Date: 2005-08-15 07:24:45 +0000 (Mon, 15 Aug 2005)
New Revision: 287

Added:
   trunk/vim/debian/patches/135_debsources.vim.diff
Modified:
   trunk/vim/debian/changelog
Log:
 * Added syntax highlighting for /etc/apt/sources.list


Modified: trunk/vim/debian/changelog
===================================================================
--- trunk/vim/debian/changelog	2005-08-12 19:14:48 UTC (rev 286)
+++ trunk/vim/debian/changelog	2005-08-15 07:24:45 UTC (rev 287)
@@ -9,7 +9,7 @@
   * Stefano Zacchiroli <zack at debian.org>:
     + Added patch 132_bib.vim.diff, which fixes highlighting of bibtex
       comments. (closes: #316184)
-    * Added patch 133_filetype.vim.diff, which adds filetype recognition
+    + Added patch 133_filetype.vim.diff, which adds filetype recognition
       for several Zope related file kinds. (closes: #311007)
 
   * Matthijs Mohlmann <matthijs at cacholong.nl>:
@@ -17,12 +17,14 @@
       search entries. (closes: #311081)
     + Added patch 134_sshconfig.vim.diff, added HashKnownHosts to syn keyword
       sshconfigKeyword (closes: #321119)
+    + Added debsources.vim (135_debsources.vim) to add syntax highlighting for
+      /etc/apt/sources.list (closes: #308947)
 
   * Pierre Habouzit <madcoder at debian.org>
     + Fix patch 105_xmodmap.vim.diff : wrt XF86_ClearGrab. (Closes: #322355)
     + Fix typo in doc/editing.txt.  (Closes: #322254)
 
- -- Debian VIM Maintainers <pkg-vim-maintainers at lists.alioth.debian.org>  Fri, 12 Aug 2005 20:11:08 +0200
+ -- Debian VIM Maintainers <pkg-vim-maintainers at lists.alioth.debian.org>  Mon, 15 Aug 2005 09:20:42 +0200
 
 vim (1:6.3-085+1) unstable; urgency=high
 

Added: trunk/vim/debian/patches/135_debsources.vim.diff
===================================================================
--- trunk/vim/debian/patches/135_debsources.vim.diff	2005-08-12 19:14:48 UTC (rev 286)
+++ trunk/vim/debian/patches/135_debsources.vim.diff	2005-08-15 07:24:45 UTC (rev 287)
@@ -0,0 +1,72 @@
+diff -ruN vim63.orig/runtime/filetype.vim vim63/runtime/filetype.vim
+--- vim63.orig/runtime/filetype.vim	2005-08-15 09:13:52.637698992 +0200
++++ vim63/runtime/filetype.vim	2005-08-15 09:19:07.331858208 +0200
+@@ -1413,6 +1413,9 @@
+ " Slice
+ au BufNewFile,BufRead *.ice			setf slice
+ 
++" Debian sources.list
++au BufNewFile,BufRead sources.list  setf debsources
++
+ " Spice
+ au BufNewFile,BufRead *.sp,*.spice		setf spice
+ 
+diff -ruN vim63.orig/runtime/syntax/debsources.vim vim63/runtime/syntax/debsources.vim
+--- vim63.orig/runtime/syntax/debsources.vim	1970-01-01 01:00:00.000000000 +0100
++++ vim63/runtime/syntax/debsources.vim	2005-08-15 09:17:32.418287264 +0200
+@@ -0,0 +1,55 @@
++" Vim syntax file
++" Language:	Debian sources.list
++" Maintainer:	Matthijs Mohlmann <matthijs at cacholong.nl>
++" Last Change:	$Date: 2005/08/13 11:51:26 $
++" URL: http://www.cacholong.nl/~matthijs/vim/syntax/debsources.vim
++" $Revision: 1.4 $
++
++" this is a very simple syntax file - I will be improving it
++" add entire DEFINE syntax
++
++" Standard syntax initialization
++if version < 600
++  syntax clear
++elseif exists("b:current_syntax")
++  finish
++endif
++
++" case sensitive
++syn case match
++
++" deb-src is a keyword
++setlocal iskeyword+=-
++
++" A bunch of useful keywords
++syn keyword sourcesKeyword      deb deb-src
++syn keyword sourcesKeyword      main contrib non-free
++
++" Match comments
++syn match sourcesComment        /#.*/
++
++" Match uri's
++syn match sourcesUri            +\(http://\|ftp://\|file:///\)[^' 	<>"]\++
++syn match sourcesDistrKeyword   +\([[:alnum:]_./]*\)\(woody\|sarge\|etch\|old-stable\|stable\|testing\|unstable\|sid\|experimental\|warty\|hoary\|breezy\)\([[:alnum:]_./]*\)+
++
++" Associate our matches and regions with pretty colours
++if version >= 508 || !exists("did_debsources_syn_inits")
++  if version < 508
++    let did_debchangelog_syn_inits = 1
++    command -nargs=+ HiLink hi link <args>
++  else
++    command -nargs=+ HiLink hi def link <args>
++  endif
++
++  HiLink sourcesLine            Error
++  HiLink sourcesKeyword         Statement
++  HiLink sourcesDistrKeyword    Type
++  HiLink sourcesComment         Comment
++  HiLink sourcesUri             Constant
++
++  delcommand HiLink
++endif
++
++let b:current_syntax = "debsources"
++
++" vim: ts=8




More information about the pkg-vim-maintainers mailing list