annotate runtime/syntax/debchangelog.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents 071f9da012fb
children 46763b01cd9a
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>
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
4 " Former Maintainers: Gerfried Fuchs <alfie@ist.org>
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
5 " Wichert Akkerman <wakkerma@debian.org>
9097
071f9da012fb commit https://github.com/vim/vim/commit/06d2d38ab7564e1f784b1058a4ef4580cd6d1810
Christian Brabandt <cb@256bit.org>
parents: 7384
diff changeset
6 " Last Change: 2016 Apr 24
7384
aea5ebf352c4 commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents: 6823
diff changeset
7 " URL: https://anonscm.debian.org/cgit/pkg-vim/vim.git/plain/runtime/syntax/debchangelog.vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Standard syntax initialization
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
10 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Case doesn't matter for us
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
17 let urgency='urgency=\(low\|medium\|high\|critical\)\( [^[:space:],][^,]*\)\='
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
18 let binNMU='binary-only=yes'
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
19
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Define some common expressions we can use later on
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
21 syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ "
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
22 exe 'syn match debchangelogFirstKV contained "; \('.urgency.'\|'.binNMU.'\)"'
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
23 exe 'syn match debchangelogOtherKV contained ", \('.urgency.'\|'.binNMU.'\)"'
9097
071f9da012fb commit https://github.com/vim/vim/commit/06d2d38ab7564e1f784b1058a4ef4580cd6d1810
Christian Brabandt <cb@256bit.org>
parents: 7384
diff changeset
24 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|precise|trusty|vivid|wily|xenial|yakkety)%(-%(security|proposed|updates|backports|commercial|partner))=)+"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match debchangelogVersion contained "(.\{-})"
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
26 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*"
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
27 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match debchangelogEmail contained "<.\{-}>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Define the entries that make up the changelog
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
32 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogFirstKV,debchangelogOtherKV,debchangelogTarget,debchangelogVersion,debchangelogBinNMU oneline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
34 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " Associate our matches and regions with pretty colours
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
37 command -nargs=+ HiLink hi def link <args>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
39 HiLink debchangelogHeader Error
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
40 HiLink debchangelogFooter Identifier
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
41 HiLink debchangelogEntry Normal
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
42 HiLink debchangelogCloses Statement
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
43 HiLink debchangelogLP Statement
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
44 HiLink debchangelogFirstKV Identifier
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
45 HiLink debchangelogOtherKV Identifier
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
46 HiLink debchangelogName Comment
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
47 HiLink debchangelogVersion Identifier
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
48 HiLink debchangelogTarget Identifier
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
49 HiLink debchangelogEmail Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 9097
diff changeset
51 delcommand HiLink
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 let b:current_syntax = "debchangelog"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " vim: ts=8 sw=2