annotate runtime/syntax/debchangelog.vim @ 11635:70bc7b107610 v8.0.0700

patch 8.0.0700: segfault with QuitPre autocommand closes the window commit https://github.com/vim/vim/commit/0ea5070d79c8a13fb2403280a72f968495b0fab7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 8 14:44:50 2017 +0200 patch 8.0.0700: segfault with QuitPre autocommand closes the window Problem: Segfault with QuitPre autocommand closes the window. (Marek) Solution: Check that the window pointer is still valid. (Christian Brabandt, closes #1817)
author Christian Brabandt <cb@256bit.org>
date Sat, 08 Jul 2017 14:45:03 +0200
parents 63b0b7b79b25
children 167a030448fa
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>
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
6 " Last Change: 2017 Apr 23
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
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
17 let s:urgency='urgency=\(low\|medium\|high\|critical\)\( [^[:space:],][^,]*\)\='
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
18 let s:binNMU='binary-only=yes'
6823
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:].+-]\+ "
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
22 exe 'syn match debchangelogFirstKV contained "; \('.s:urgency.'\|'.s:binNMU.'\)"'
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
23 exe 'syn match debchangelogOtherKV contained ", \('.s:urgency.'\|'.s:binNMU.'\)"'
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
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|jessie)%(-backports%(-sloppy)=|-security)=|stretch%(-backports|-security)=|%(devel|precise|trusty|vivid|wily|xenial|yakkety|zesty|artful)%(-%(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
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
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 let b:current_syntax = "debchangelog"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " vim: ts=8 sw=2