Mercurial > vim
annotate runtime/syntax/debsources.vim @ 29272:8175cd4c8fdd v8.2.5154
patch 8.2.5154: still mentioning version8, some cosmetic issues
Commit: https://github.com/vim/vim/commit/abd56da30bae4a5c6c20b9363ccae12f7b126026
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 23 20:46:27 2022 +0100
patch 8.2.5154: still mentioning version8, some cosmetic issues
Problem: Still mentioning version8, some cosmetic issues.
Solution: Prefer mentioning version9, cosmetic improvements.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Jun 2022 22:00:04 +0200 |
parents | cd68a630f0d0 |
children | 34c1f4cd0c18 |
rev | line source |
---|---|
816 | 1 " Vim syntax file |
1668 | 2 " Language: Debian sources.list |
13231 | 3 " Maintainer: Debian Vim Maintainers |
1668 | 4 " Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl> |
28843
cd68a630f0d0
Update runtime files and translations
Bram Moolenaar <Bram@vim.org>
parents:
28246
diff
changeset
|
5 " Last Change: 2022 May 01 |
13231 | 6 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/master/syntax/debsources.vim |
816 | 7 |
8 " Standard syntax initialization | |
13857 | 9 if exists('b:current_syntax') |
816 | 10 finish |
11 endif | |
12 | |
13 " case sensitive | |
14 syn case match | |
15 | |
16 " A bunch of useful keywords | |
1668 | 17 syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/ |
816 | 18 |
19 " Match comments | |
2034 | 20 syn match debsourcesComment /#.*/ contains=@Spell |
816 | 21 |
6823 | 22 let s:cpo = &cpo |
23 set cpo-=C | |
24 let s:supported = [ | |
25 \ 'oldstable', 'stable', 'testing', 'unstable', 'experimental', | |
22824 | 26 \ 'jessie', 'stretch', 'buster', 'bullseye', 'bookworm', |
23047 | 27 \ 'trixie', 'sid', 'rc-buggy', |
6823 | 28 \ |
28843
cd68a630f0d0
Update runtime files and translations
Bram Moolenaar <Bram@vim.org>
parents:
28246
diff
changeset
|
29 \ 'trusty', 'xenial', 'bionic', 'focal', 'impish', 'jammy', 'kinetic', |
26050 | 30 \ 'devel' |
6823 | 31 \ ] |
32 let s:unsupported = [ | |
33 \ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', | |
22824 | 34 \ 'woody', 'sarge', 'etch', 'lenny', 'squeeze', 'wheezy', |
6823 | 35 \ |
36 \ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty', | |
37 \ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid', | |
11518 | 38 \ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy', |
19303 | 39 \ 'utopic', 'vivid', 'wily', 'yakkety', 'zesty', 'artful', 'cosmic', |
28246 | 40 \ 'disco', 'eoan', 'hirsute', 'groovy' |
6823 | 41 \ ] |
42 let &cpo=s:cpo | |
43 | |
816 | 44 " Match uri's |
13857 | 45 syn match debsourcesUri '\(https\?://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\+' |
11518 | 46 exe 'syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:supported, '\|'). '\)\>\([-[:alnum:]_./]*\)+' |
47 exe 'syn match debsourcesUnsupportedDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:unsupported, '\|') .'\)\>\([-[:alnum:]_./]*\)+' | |
816 | 48 |
49 " Associate our matches and regions with pretty colours | |
6823 | 50 hi def link debsourcesLine Error |
51 hi def link debsourcesKeyword Statement | |
52 hi def link debsourcesDistrKeyword Type | |
53 hi def link debsourcesUnsupportedDistrKeyword WarningMsg | |
54 hi def link debsourcesComment Comment | |
55 hi def link debsourcesUri Constant | |
816 | 56 |
13857 | 57 let b:current_syntax = 'debsources' |