annotate runtime/syntax/debsources.vim @ 1072:25154b22dc96 v7.0.198

updated for version 7.0-198
author vimboss
date Tue, 20 Feb 2007 02:16:18 +0000
parents 4a79d6d376f0
children 0b796e045c42
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
1 " Vim syntax file
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
2 " Language: Debian sources.list
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
3 " Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
4 " Last Change: $Date$
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
5 " URL: http://www.cacholong.nl/~matthijs/vim/syntax/debsources.vim
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
6 " $Revision$
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
7
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
8 " this is a very simple syntax file - I will be improving it
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
9 " add entire DEFINE syntax
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
10
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
11 " Standard syntax initialization
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
12 if version < 600
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
13 syntax clear
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
14 elseif exists("b:current_syntax")
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
15 finish
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
16 endif
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
17
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
18 " case sensitive
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
19 syn case match
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
20
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
21 " A bunch of useful keywords
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
22 syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\)/
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
23
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
24 " Match comments
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
25 syn match debsourcesComment /#.*/
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
26
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
27 " Match uri's
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
28 syn match debsourcesUri +\(http://\|ftp://\|file:///\)[^' <>"]\++
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
29 syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(woody\|sarge\|etch\|old-stable\|stable\|testing\|unstable\|sid\|experimental\|warty\|hoary\|breezy\)\([[:alnum:]_./]*\)+
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
30
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
31 " Associate our matches and regions with pretty colours
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
32 hi def link debsourcesLine Error
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
33 hi def link debsourcesKeyword Statement
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
34 hi def link debsourcesDistrKeyword Type
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
35 hi def link debsourcesComment Comment
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
36 hi def link debsourcesUri Constant
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
37
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
38 let b:current_syntax = "debsources"
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
39
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
40 " vim: ts=8