Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/vim71/syntax/debsources.vim
diff options
context:
space:
mode:
authorGeroge Hunt <georgejhunt@gmail.com>2011-02-26 20:19:01 (GMT)
committer Geroge Hunt <georgejhunt@gmail.com>2011-02-26 20:19:01 (GMT)
commitfb6211451e0aa64e36ba309934746c12f9ebd869 (patch)
tree2c8f7cbb26f97654a9d7b6b6b26a82a53bc64f07 /vim71/syntax/debsources.vim
create initial snapshotHEADmaster
Diffstat (limited to 'vim71/syntax/debsources.vim')
-rw-r--r--vim71/syntax/debsources.vim40
1 files changed, 40 insertions, 0 deletions
diff --git a/vim71/syntax/debsources.vim b/vim71/syntax/debsources.vim
new file mode 100644
index 0000000..a49ae20
--- /dev/null
+++ b/vim71/syntax/debsources.vim
@@ -0,0 +1,40 @@
+" Vim syntax file
+" Language: Debian sources.list
+" Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
+" Last Change: $Date: 2006/03/28 21:08:56 $
+" URL: http://www.cacholong.nl/~matthijs/vim/syntax/debsources.vim
+" $Revision: 1.1 $
+
+" 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
+
+" A bunch of useful keywords
+syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\)/
+
+" Match comments
+syn match debsourcesComment /#.*/
+
+" Match uri's
+syn match debsourcesUri +\(http://\|ftp://\|file:///\)[^' <>"]\++
+syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(woody\|sarge\|etch\|old-stable\|stable\|testing\|unstable\|sid\|experimental\|warty\|hoary\|breezy\)\([[:alnum:]_./]*\)+
+
+" Associate our matches and regions with pretty colours
+hi def link debsourcesLine Error
+hi def link debsourcesKeyword Statement
+hi def link debsourcesDistrKeyword Type
+hi def link debsourcesComment Comment
+hi def link debsourcesUri Constant
+
+let b:current_syntax = "debsources"
+
+" vim: ts=8