annotate runtime/syntax/debchangelog.vim @ 26869:659e30d7eeb7 v8.2.3963

patch 8.2.3963: build failure with tiny and small features Commit: https://github.com/vim/vim/commit/096ca73dacd748a65d080197b842eef6f4423096 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 00:55:28 2022 +0000 patch 8.2.3963: build failure with tiny and small features Problem: Build failure with tiny and small features. (Tony Mechelynck) Solution: Adjust #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 02:00:03 +0100
parents ebedba7a4898
children e3d6184b89fa
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
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11518
diff changeset
3 " Maintainer: Debian Vim Maintainers
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>
26050
ebedba7a4898 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25619
diff changeset
6 " Last Change: 2021 Oct 19
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11518
diff changeset
7 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/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
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
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
15729
fe57e4f0eac1 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 14999
diff changeset
17 let s:urgency='urgency=\(low\|medium\|high\|emergency\|critical\)\( [^[:space:],][^,]*\)\='
11518
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
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
20 let s:cpo = &cpo
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
21 set cpo-=C
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
22 let s:supported = [
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
23 \ 'oldstable', 'stable', 'testing', 'unstable', 'experimental',
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 20241
diff changeset
24 \ 'jessie', 'stretch', 'buster', 'bullseye', 'bookworm',
23047
29c5f168c6fd Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 22824
diff changeset
25 \ 'trixie', 'sid', 'rc-buggy',
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
26 \
26050
ebedba7a4898 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25619
diff changeset
27 \ 'trusty', 'xenial', 'bionic', 'focal', 'hirsute', 'impish', 'jammy',
ebedba7a4898 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 25619
diff changeset
28 \ 'devel'
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
29 \ ]
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
30 let s:unsupported = [
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
31 \ 'frozen', 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato',
22824
8dad79c661d1 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 20241
diff changeset
32 \ 'woody', 'sarge', 'etch', 'lenny', 'squeeze', 'wheezy',
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
33 \
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
34 \ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty',
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
35 \ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid',
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
36 \ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy',
19303
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
37 \ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty', 'artful', 'cosmic',
25619
29ec2c198c8d Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 23047
diff changeset
38 \ 'disco', 'eoan', 'groovy'
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
39 \ ]
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
40 let &cpo=s:cpo
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
41
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " Define some common expressions we can use later on
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
43 syn match debchangelogName contained "^[[:alnum:]][[:alnum:].+-]\+ "
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
44 exe 'syn match debchangelogFirstKV contained "; \('.s:urgency.'\|'.s:binNMU.'\)"'
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
45 exe 'syn match debchangelogOtherKV contained ", \('.s:urgency.'\|'.s:binNMU.'\)"'
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
46 exe 'syn match debchangelogTarget contained "\%( \%('.join(s:supported, '\|').'\)\>[-[:alnum:]]*\)\+"'
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
47 exe 'syn match debchangelogUnsupportedTarget contained "\%( \%('.join(s:unsupported, '\|').'\)\>[-[:alnum:]]*\)\+"'
19303
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
48 syn match debchangelogUnreleased contained / UNRELEASED/
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match debchangelogVersion contained "(.\{-})"
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
50 syn match debchangelogCloses contained "closes:\_s*\(bug\)\=#\=\_s\=\d\+\(,\_s*\(bug\)\=#\=\_s\=\d\+\)*"
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
51 syn match debchangelogLP contained "\clp:\s\+#\d\+\(,\s*#\d\+\)*"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match debchangelogEmail contained "[_=[:alnum:].+-]\+@[[:alnum:]./\-]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match debchangelogEmail contained "<.\{-}>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " Define the entries that make up the changelog
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
56 syn region debchangelogHeader start="^[^ ]" end="$" contains=debchangelogName,debchangelogFirstKV,debchangelogOtherKV,debchangelogTarget,debchangelogUnsupportedTarget,debchangelogUnreleased,debchangelogVersion,debchangelogBinNMU oneline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn region debchangelogFooter start="^ [^ ]" end="$" contains=debchangelogEmail oneline
1620
73fe8baea242 updated for version 7.2a
vimboss
parents: 835
diff changeset
58 syn region debchangelogEntry start="^ " end="$" contains=debchangelogCloses,debchangelogLP oneline
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 " 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
61 hi def link debchangelogHeader Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
62 hi def link debchangelogFooter Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
63 hi def link debchangelogEntry Normal
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
64 hi def link debchangelogCloses Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
65 hi def link debchangelogLP Statement
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
66 hi def link debchangelogFirstKV Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
67 hi def link debchangelogOtherKV Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
68 hi def link debchangelogName Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
69 hi def link debchangelogVersion Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
70 hi def link debchangelogTarget Identifier
18489
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
71 hi def link debchangelogUnsupportedTarget Identifier
1cd44535be32 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18053
diff changeset
72 hi def link debchangelogUnreleased WarningMsg
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
73 hi def link debchangelogEmail Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
75 let b:current_syntax = 'debchangelog'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " vim: ts=8 sw=2