Mercurial > vim
comparison runtime/syntax/debchangelog.vim @ 6823:0303182665d5
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 09 Jun 2015 19:44:55 +0200 |
parents | 32a77cc160d9 |
children | aea5ebf352c4 |
comparison
equal
deleted
inserted
replaced
6822:856ac8b406e6 | 6823:0303182665d5 |
---|---|
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 Maintainers: Gerfried Fuchs <alfie@ist.org> | 4 " Former Maintainers: Gerfried Fuchs <alfie@ist.org> |
5 " Wichert Akkerman <wakkerma@debian.org> | 5 " Wichert Akkerman <wakkerma@debian.org> |
6 " Last Change: 2014 Jul 11 | 6 " Last Change: 2015 Apr 30 |
7 " URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debchangelog.vim | 7 " URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debchangelog.vim |
8 | 8 |
9 " Standard syntax initialization | 9 " Standard syntax initialization |
10 if version < 600 | 10 if version < 600 |
11 syntax clear | 11 syntax clear |
14 endif | 14 endif |
15 | 15 |
16 " Case doesn't matter for us | 16 " Case doesn't matter for us |
17 syn case ignore | 17 syn case ignore |
18 | 18 |
19 let urgency='urgency=\(low\|medium\|high\|critical\)\( [^[:space:],][^,]*\)\=' | |
20 let binNMU='binary-only=yes' | |
21 | |
19 " Define some common expressions we can use later on | 22 " Define some common expressions we can use later on |
20 syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ " | 23 syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ " |
21 syn match debchangelogUrgency contained "; urgency=\(low\|medium\|high\|critical\|emergency\)\( \S.*\)\=" | 24 exe 'syn match debchangelogFirstKV contained "; \('.urgency.'\|'.binNMU.'\)"' |
22 syn match debchangelogTarget contained "\v %(frozen|unstable|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|squeeze-%(backports%(-sloppy)=|volatile)|wheezy-backports|%(devel|lucid|precise|trusty|utopic)%(-%(security|proposed|updates|backports|commercial|partner))=)+" | 25 exe 'syn match debchangelogOtherKV contained ", \('.urgency.'\|'.binNMU.'\)"' |
26 syn match debchangelogTarget contained "\v %(frozen|unstable|sid|%(testing|%(old)=stable)%(-proposed-updates|-security)=|experimental|squeeze-%(backports%(-sloppy)=|volatile|lts|security)|wheezy-%(backports%(-sloppy)=|security)|jessie%(-backports|-security)=|stretch|%(devel|lucid|precise|trusty|utopic)%(-%(security|proposed|updates|backports|commercial|partner))=)+" | |
23 syn match debchangelogVersion contained "(.\{-})" | 27 syn match debchangelogVersion contained "(.\{-})" |
24 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*" | 28 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*" |
25 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*" | 29 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*" |
26 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+" | 30 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+" |
27 syn match debchangelogEmail contained "<.\{-}>" | 31 syn match debchangelogEmail contained "<.\{-}>" |
28 | 32 |
29 " Define the entries that make up the changelog | 33 " Define the entries that make up the changelog |
30 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogUrgency,debchangelogTarget,debchangelogVersion oneline | 34 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogFirstKV,debchangelogOtherKV,debchangelogTarget,debchangelogVersion,debchangelogBinNMU oneline |
31 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline | 35 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline |
32 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline | 36 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline |
33 | 37 |
34 " Associate our matches and regions with pretty colours | 38 " Associate our matches and regions with pretty colours |
35 if version >= 508 || !exists("did_debchangelog_syn_inits") | 39 if version >= 508 || !exists("did_debchangelog_syn_inits") |
43 HiLink debchangelogHeader Error | 47 HiLink debchangelogHeader Error |
44 HiLink debchangelogFooter Identifier | 48 HiLink debchangelogFooter Identifier |
45 HiLink debchangelogEntry Normal | 49 HiLink debchangelogEntry Normal |
46 HiLink debchangelogCloses Statement | 50 HiLink debchangelogCloses Statement |
47 HiLink debchangelogLP Statement | 51 HiLink debchangelogLP Statement |
48 HiLink debchangelogUrgency Identifier | 52 HiLink debchangelogFirstKV Identifier |
53 HiLink debchangelogOtherKV Identifier | |
49 HiLink debchangelogName Comment | 54 HiLink debchangelogName Comment |
50 HiLink debchangelogVersion Identifier | 55 HiLink debchangelogVersion Identifier |
51 HiLink debchangelogTarget Identifier | 56 HiLink debchangelogTarget Identifier |
52 HiLink debchangelogEmail Special | 57 HiLink debchangelogEmail Special |
53 | 58 |