Mercurial > vim
annotate runtime/syntax/debsources.vim @ 12351:4e61b77cd96f v8.0.1055
patch 8.0.1055: bufline test hangs on MS-Windows
commit https://github.com/vim/vim/commit/11aa62f8f949bb590b4d7792a334885fba5e4137
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 4 22:56:01 2017 +0200
patch 8.0.1055: bufline test hangs on MS-Windows
Problem: Bufline test hangs on MS-Windows.
Solution: Avoid message for writing file. Source shared.vim when running
test individually.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 04 Sep 2017 23:00:05 +0200 |
parents | 63b0b7b79b25 |
children | f690da1b3c04 |
rev | line source |
---|---|
816 | 1 " Vim syntax file |
1668 | 2 " Language: Debian sources.list |
3 " Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org> | |
4 " Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl> | |
11518 | 5 " Last Change: 2017 Apr 22 |
7384
aea5ebf352c4
commit https://github.com/vim/vim/commit/256972a9849b5d575b62a6a71be5b6934b5b0e8b
Christian Brabandt <cb@256bit.org>
parents:
6823
diff
changeset
|
6 " URL: https://anonscm.debian.org/cgit/pkg-vim/vim.git/plain/runtime/syntax/debsources.vim |
816 | 7 |
8 " Standard syntax initialization | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
9097
diff
changeset
|
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', | |
26 \ 'squeeze', 'wheezy', 'jessie', 'stretch', 'sid', 'rc-buggy', | |
27 \ | |
11518 | 28 \ 'trusty', 'xenial', 'yakkety', 'zesty', 'artful', 'devel' |
6823 | 29 \ ] |
30 let s:unsupported = [ | |
31 \ 'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', | |
32 \ 'woody', 'sarge', 'etch', 'lenny', | |
33 \ | |
34 \ 'warty', 'hoary', 'breezy', 'dapper', 'edgy', 'feisty', | |
35 \ 'gutsy', 'hardy', 'intrepid', 'jaunty', 'karmic', 'lucid', | |
11518 | 36 \ 'maverick', 'natty', 'oneiric', 'precise', 'quantal', 'raring', 'saucy', |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
37 \ 'utopic', 'vivid', 'wily' |
6823 | 38 \ ] |
39 let &cpo=s:cpo | |
40 | |
816 | 41 " Match uri's |
10244
876fbdd84e52
commit https://github.com/vim/vim/commit/2ec618c9feac4573b154510236ad8121c77d0eca
Christian Brabandt <cb@256bit.org>
parents:
10051
diff
changeset
|
42 syn match debsourcesUri +\(https\?://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\++ |
11518 | 43 exe 'syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:supported, '\|'). '\)\>\([-[:alnum:]_./]*\)+' |
44 exe 'syn match debsourcesUnsupportedDistrKeyword +\([[:alnum:]_./]*\)\<\('. join(s:unsupported, '\|') .'\)\>\([-[:alnum:]_./]*\)+' | |
816 | 45 |
46 " Associate our matches and regions with pretty colours | |
6823 | 47 hi def link debsourcesLine Error |
48 hi def link debsourcesKeyword Statement | |
49 hi def link debsourcesDistrKeyword Type | |
50 hi def link debsourcesUnsupportedDistrKeyword WarningMsg | |
51 hi def link debsourcesComment Comment | |
52 hi def link debsourcesUri Constant | |
816 | 53 |
54 let b:current_syntax = "debsources" |