Mercurial > vim
annotate runtime/syntax/debchangelog.vim @ 10454:f5c7c76897fa v8.0.0120
commit https://github.com/vim/vim/commit/5643db84c6a9f15d14492cefd52647623aa2ac7c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 3 14:29:10 2016 +0100
patch 8.0.0120
Problem: Channel test is still flaky on OS X.
Solution: Set the drop argument to "never".
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 03 Dec 2016 14:30:04 +0100 |
parents | 46763b01cd9a |
children | 9a75c8a1b8b1 |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
835 | 2 " Language: Debian changelog files |
3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org> | |
1620 | 4 " Former Maintainers: Gerfried Fuchs <alfie@ist.org> |
5 " Wichert Akkerman <wakkerma@debian.org> | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
6 " Last Change: 2016 Aug 30 |
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 | 8 |
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 | 11 finish |
12 endif | |
13 | |
14 " Case doesn't matter for us | |
15 syn case ignore | |
16 | |
6823 | 17 let urgency='urgency=\(low\|medium\|high\|critical\)\( [^[:space:],][^,]*\)\=' |
18 let binNMU='binary-only=yes' | |
19 | |
7 | 20 " Define some common expressions we can use later on |
2034 | 21 syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ " |
6823 | 22 exe 'syn match debchangelogFirstKV contained "; \('.urgency.'\|'.binNMU.'\)"' |
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 | 25 syn match debchangelogVersion contained "(.\{-})" |
1620 | 26 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*" |
27 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*" | |
7 | 28 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+" |
29 syn match debchangelogEmail contained "<.\{-}>" | |
30 | |
31 " Define the entries that make up the changelog | |
6823 | 32 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogFirstKV,debchangelogOtherKV,debchangelogTarget,debchangelogVersion,debchangelogBinNMU oneline |
7 | 33 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline |
1620 | 34 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline |
7 | 35 |
36 " Associate our matches and regions with pretty colours | |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
37 hi def link debchangelogHeader Error |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
38 hi def link debchangelogFooter Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
39 hi def link debchangelogEntry Normal |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
40 hi def link debchangelogCloses Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
41 hi def link debchangelogLP Statement |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
42 hi def link debchangelogFirstKV Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
43 hi def link debchangelogOtherKV Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
44 hi def link debchangelogName Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
45 hi def link debchangelogVersion Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
46 hi def link debchangelogTarget Identifier |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
47 hi def link debchangelogEmail Special |
7 | 48 |
49 let b:current_syntax = "debchangelog" | |
50 | |
51 " vim: ts=8 sw=2 |