annotate runtime/syntax/debchangelog.vim @ 954:4256f76f7266 v7.0.080

updated for version 7.0-080
author vimboss
date Sat, 02 Sep 2006 14:32:22 +0000
parents 8bebcabccc2c
children 73fe8baea242
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
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
2 " Language: Debian changelog files
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
4 " Former Maintainer: Wichert Akkerman <wakkerma@debian.org>
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
5 " Last Change: $LastChangedDate: 2006-04-16 21:50:31 -0400 (dom, 16 apr 2006) $
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
6 " URL: http://svn.debian.org/wsvn/pkg-vim/trunk/runtime/syntax/debchangelog.vim?op=file&rev=0&sc=0
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Standard syntax initialization
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Case doesn't matter for us
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Define some common expressions we can use later on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match debchangelogName contained "^[[:alpha:]][[:alnum:].+-]\+ "
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
20 syn match debchangelogUrgency contained "; urgency=\(low\|medium\|high\|critical\|emergency\)\( \S.*\)\="
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
21 syn match debchangelogTarget contained "\( stable\| frozen\| unstable\| testing-proposed-updates\| experimental\| sarge-backports\| sarge-volatile\| stable-security\| testing-security\)\+"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match debchangelogVersion contained "(.\{-})"
835
8bebcabccc2c updated for version 7.0e01
vimboss
parents: 7
diff changeset
23 syn match debchangelogCloses contained "closes:\s*\(bug\)\=#\=\s\=\d\+\(,\s*\(bug\)\=#\=\s\=\d\+\)*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match debchangelogEmail contained "<.\{-}>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Define the entries that make up the changelog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogUrgency,debchangelogTarget,debchangelogVersion oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses oneline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " Associate our matches and regions with pretty colours
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 if version >= 508 || !exists("did_debchangelog_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 let did_debchangelog_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 HiLink debchangelogHeader Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 HiLink debchangelogFooter Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 HiLink debchangelogEntry Normal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 HiLink debchangelogCloses Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 HiLink debchangelogUrgency Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 HiLink debchangelogName Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 HiLink debchangelogVersion Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 HiLink debchangelogTarget Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 HiLink debchangelogEmail Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 let b:current_syntax = "debchangelog"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " vim: ts=8 sw=2