annotate runtime/syntax/debchangelog.vim @ 100:1f3902f3eb5c v7.0038

updated for version 7.0038
author vimboss
date Fri, 14 Jan 2005 21:53:12 +0000
parents 3fc0f57ecb91
children 8bebcabccc2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: Debian changelog files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Wichert Akkerman <wakkerma@debian.org>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 30 April 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " Standard syntax initialization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " Case doesn't matter for us
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Define some common expressions we can use later on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match debchangelogName contained "^[[:alpha:]][[:alnum:].+-]\+ "
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match debchangelogUrgency contained "; urgency=\(low\|medium\|high\|critical\)"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match debchangelogTarget contained "\( stable\| frozen\| unstable\| experimental\)\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match debchangelogVersion contained "(.\{-})"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match debchangelogCloses contained "closes:\s*\(bug\)\=#\s\=\d\+\(,\s*\(bug\)\=#\s\=\d\+\)*"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match debchangelogEmail contained "<.\{-}>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Define the entries that make up the changelog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogUrgency,debchangelogTarget,debchangelogVersion oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Associate our matches and regions with pretty colours
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 if version >= 508 || !exists("did_debchangelog_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 let did_debchangelog_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 HiLink debchangelogHeader Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 HiLink debchangelogFooter Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 HiLink debchangelogEntry Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 HiLink debchangelogCloses Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 HiLink debchangelogUrgency Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 HiLink debchangelogName Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink debchangelogVersion Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink debchangelogTarget Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink debchangelogEmail Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 let b:current_syntax = "debchangelog"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " vim: ts=8 sw=2