comparison runtime/syntax/debchangelog.vim @ 1620:73fe8baea242

updated for version 7.2a
author vimboss
date Tue, 24 Jun 2008 21:16:56 +0000
parents 8bebcabccc2c
children 0b796e045c42
comparison
equal deleted inserted replaced
1619:b9740fb41986 1620:73fe8baea242
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Debian changelog files 2 " Language: Debian changelog files
3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org> 3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
4 " Former Maintainer: Wichert Akkerman <wakkerma@debian.org> 4 " Former Maintainers: Gerfried Fuchs <alfie@ist.org>
5 " Last Change: $LastChangedDate: 2006-04-16 21:50:31 -0400 (dom, 16 apr 2006) $ 5 " Wichert Akkerman <wakkerma@debian.org>
6 " URL: http://svn.debian.org/wsvn/pkg-vim/trunk/runtime/syntax/debchangelog.vim?op=file&rev=0&sc=0 6 " Last Change: 2008-01-16
7 " URL: http://git.debian.org/?p=pkg-vim/vim.git;a=blob_plain;f=runtime/syntax/debchangelog.vim;hb=debian
7 8
8 " Standard syntax initialization 9 " Standard syntax initialization
9 if version < 600 10 if version < 600
10 syntax clear 11 syntax clear
11 elseif exists("b:current_syntax") 12 elseif exists("b:current_syntax")
16 syn case ignore 17 syn case ignore
17 18
18 " Define some common expressions we can use later on 19 " Define some common expressions we can use later on
19 syn match debchangelogName contained "^[[:alpha:]][[:alnum:].+-]\+ " 20 syn match debchangelogName contained "^[[:alpha:]][[:alnum:].+-]\+ "
20 syn match debchangelogUrgency contained "; urgency=\(low\|medium\|high\|critical\|emergency\)\( \S.*\)\=" 21 syn match debchangelogUrgency contained "; urgency=\(low\|medium\|high\|critical\|emergency\)\( \S.*\)\="
21 syn match debchangelogTarget contained "\( stable\| frozen\| unstable\| testing-proposed-updates\| experimental\| sarge-backports\| sarge-volatile\| stable-security\| testing-security\)\+" 22 syn match debchangelogTarget contained "\( \(old\)\=stable\| frozen\| unstable\| testing-proposed-updates\| experimental\| \%(sarge\|etch\|lenny\)-\%(backports\|-volatile\)\| \(old\)\=stable-security\| testing-security\| \(dapper\|edgy\|feisty\|gutsy\|hardy\)\(-\(security\|proposed\|updates\|backports\|commercial\|partner\)\)\?\)\+"
22 syn match debchangelogVersion contained "(.\{-})" 23 syn match debchangelogVersion contained "(.\{-})"
23 syn match debchangelogCloses contained "closes:\s*\(bug\)\=#\=\s\=\d\+\(,\s*\(bug\)\=#\=\s\=\d\+\)*" 24 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*"
25 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*"
24 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+" 26 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+"
25 syn match debchangelogEmail contained "<.\{-}>" 27 syn match debchangelogEmail contained "<.\{-}>"
26 28
27 " Define the entries that make up the changelog 29 " Define the entries that make up the changelog
28 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogUrgency,debchangelogTarget,debchangelogVersion oneline 30 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogUrgency,debchangelogTarget,debchangelogVersion oneline
29 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline 31 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline
30 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses oneline 32 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline
31 33
32 " Associate our matches and regions with pretty colours 34 " Associate our matches and regions with pretty colours
33 if version >= 508 || !exists("did_debchangelog_syn_inits") 35 if version >= 508 || !exists("did_debchangelog_syn_inits")
34 if version < 508 36 if version < 508
35 let did_debchangelog_syn_inits = 1 37 let did_debchangelog_syn_inits = 1
40 42
41 HiLink debchangelogHeader Error 43 HiLink debchangelogHeader Error
42 HiLink debchangelogFooter Identifier 44 HiLink debchangelogFooter Identifier
43 HiLink debchangelogEntry Normal 45 HiLink debchangelogEntry Normal
44 HiLink debchangelogCloses Statement 46 HiLink debchangelogCloses Statement
47 HiLink debchangelogLP Statement
45 HiLink debchangelogUrgency Identifier 48 HiLink debchangelogUrgency Identifier
46 HiLink debchangelogName Comment 49 HiLink debchangelogName Comment
47 HiLink debchangelogVersion Identifier 50 HiLink debchangelogVersion Identifier
48 HiLink debchangelogTarget Identifier 51 HiLink debchangelogTarget Identifier
49 HiLink debchangelogEmail Special 52 HiLink debchangelogEmail Special