annotate runtime/syntax/debsources.vim @ 21456:a2bf60c69fb9

Added tag v8.2.1278 for changeset 8cc1555f2445c4c92db913c6de4c93f7d25a2ae6
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jul 2020 15:45:07 +0200
parents 56265f711890
children 8dad79c661d1
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>
20241
56265f711890 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19303
diff changeset
5 " Last Change: 2020 Apr 27
13231
167a030448fa Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 12826
diff changeset
6 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/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
1668
0b796e045c42 updated for version 7.2b-000
vimboss
parents: 816
diff changeset
17 syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
18
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
19 " Match comments
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 1668
diff changeset
20 syn match debsourcesComment /#.*/ contains=@Spell
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
21
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
22 let s:cpo = &cpo
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
23 set cpo-=C
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
24 let s:supported = [
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
25 \ 'oldstable', 'stable', 'testing', 'unstable', 'experimental',
16610
1eaf34420bb3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 14999
diff changeset
26 \ 'wheezy', 'jessie', 'stretch', 'buster', 'bullseye', 'bookworm',
1eaf34420bb3 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 14999
diff changeset
27 \ 'sid', 'rc-buggy',
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
28 \
20241
56265f711890 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 19303
diff changeset
29 \ 'trusty', 'xenial', 'bionic', 'eoan', 'focal', 'groovy', 'devel'
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
30 \ ]
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
31 let s:unsupported = [
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
32 \ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato',
12826
f690da1b3c04 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 11518
diff changeset
33 \ 'woody', 'sarge', 'etch', 'lenny', 'squeeze',
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
34 \
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
35 \ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty',
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
36 \ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid',
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
37 \ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy',
19303
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
38 \ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty', 'artful', 'cosmic',
51bc26d4a393 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18489
diff changeset
39 \ 'disco'
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
40 \ ]
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
41 let &cpo=s:cpo
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
42
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
43 " Match uri's
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
44 syn match debsourcesUri '\(https\?://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\+'
11518
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
45 exe 'syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:supported, '\|'). '\)\>\([-[:alnum:]_./]*\)+'
63b0b7b79b25 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10617
diff changeset
46 exe 'syn match debsourcesUnsupportedDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:unsupported, '\|') .'\)\>\([-[:alnum:]_./]*\)+'
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
47
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
48 " Associate our matches and regions with pretty colours
6823
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
49 hi def link debsourcesLine Error
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
50 hi def link debsourcesKeyword Statement
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
51 hi def link debsourcesDistrKeyword Type
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
52 hi def link debsourcesUnsupportedDistrKeyword WarningMsg
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
53 hi def link debsourcesComment Comment
0303182665d5 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 6070
diff changeset
54 hi def link debsourcesUri Constant
816
4a79d6d376f0 updated for version 7.0c02
vimboss
parents:
diff changeset
55
13857
e751b5c9dff3 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13231
diff changeset
56 let b:current_syntax = 'debsources'