annotate runtime/syntax/debsources.vim @ 34366:1f5f3d58ed28

Added tag v9.1.0113 for changeset 8303936dbd64eca2d06b4f57b9da7a17e7496e27
author Christian Brabandt <cb@256bit.org>
date Thu, 15 Feb 2024 20:30:06 +0100
parents c6d5af39dc7f
children f8951966ef0c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
1 " Vim syntax file
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
2 " Language: Debian sources.list
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12826
diff changeset
3 " Maintainer: Debian Vim Maintainers
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
4 " Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
33670
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
5 " Last Change: 2023 Oct 11
31885
cc751d944b7e Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 31028
diff changeset
6 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/syntax/debsources.vim
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
7
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
8 " Standard syntax initialization
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
9 if exists('b:current_syntax')
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
10 finish
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
11 endif
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
12
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
13 " case sensitive
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
14 syn case match
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
15
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
16 " A bunch of useful keywords
32004
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 31885
diff changeset
17 syn match debsourcesType /\(deb-src\|deb\)/
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 31885
diff changeset
18 syn match debsourcesFreeComponent /\(main\|universe\)/
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 31885
diff changeset
19 syn match debsourcesNonFreeComponent /\(contrib\|non-free-firmware\|non-free\|restricted\|multiverse\)/
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
20
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
21 " Match comments
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
22 syn match debsourcesComment /#.*/ contains=@Spell
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
23
33670
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
24 " Include Debian versioning information
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
25 runtime! syntax/shared/debversions.vim
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
26
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
27 exe 'syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(g:debSharedSupportedVersions, '\|'). '\)\>\([-[:alnum:]_./]*\)+'
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
28 exe 'syn match debsourcesUnsupportedDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(g:debSharedUnsupportedVersions, '\|') .'\)\>\([-[:alnum:]_./]*\)+'
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
29
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
30 unlet g:debSharedSupportedVersions
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
31 unlet g:debSharedUnsupportedVersions
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
32
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
33 " Match uri's
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
34 syn match debsourcesUri '\(https\?://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\+'
33670
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
35 syn region debsourcesLine start="^" end="$" contains=debsourcesType,debsourcesFreeComponent,debsourcesNonFreeComponent,debsourcesComment,debsourcesUri,debsourcesDistrKeyword,debsourcesUnsupportedDistrKeyword oneline
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
36
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
37
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
38 " Associate our matches and regions with pretty colours
32004
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 31885
diff changeset
39 hi def link debsourcesType Statement
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 31885
diff changeset
40 hi def link debsourcesFreeComponent Statement
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 31885
diff changeset
41 hi def link debsourcesNonFreeComponent Statement
33670
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
42 hi def link debsourcesComment Comment
c6d5af39dc7f runtime(debian): update debian related runtime files (#13423)
Christian Brabandt <cb@256bit.org>
parents: 32004
diff changeset
43 hi def link debsourcesUri Constant
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
44 hi def link debsourcesDistrKeyword Type
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
45 hi def link debsourcesUnsupportedDistrKeyword WarningMsg
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
46
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
47 let b:current_syntax = 'debsources'