Mercurial > vim
annotate runtime/syntax/debsources.vim @ 6070:32a77cc160d9
Update runtime files. Make matchparen plugin backwards compatible.
Add json filetype.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 19 Jul 2014 14:04:47 +0200 |
parents | 1dea14d4c738 |
children | 0303182665d5 |
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> | |
6070
32a77cc160d9
Update runtime files. Make matchparen plugin backwards compatible.
Bram Moolenaar <bram@vim.org>
parents:
5663
diff
changeset
|
5 " Last Change: 2014 Jul 11 |
2908 | 6 " URL: http://anonscm.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debsources.vim |
816 | 7 |
8 " Standard syntax initialization | |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | |
13 endif | |
14 | |
15 " case sensitive | |
16 syn case match | |
17 | |
18 " A bunch of useful keywords | |
1668 | 19 syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/ |
816 | 20 |
21 " Match comments | |
2034 | 22 syn match debsourcesComment /#.*/ contains=@Spell |
816 | 23 |
24 " Match uri's | |
1668 | 25 syn match debsourcesUri +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\++ |
6070
32a77cc160d9
Update runtime files. Make matchparen plugin backwards compatible.
Bram Moolenaar <bram@vim.org>
parents:
5663
diff
changeset
|
26 syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(squeeze\|wheezy\|jessie\|\(old\)\=stable\|testing\|unstable\|sid\|rc-buggy\|experimental\|devel\|lucid\|precise\|trusty\|utopic\)\([-[:alnum:]_./]*\)+ |
816 | 27 |
28 " Associate our matches and regions with pretty colours | |
29 hi def link debsourcesLine Error | |
30 hi def link debsourcesKeyword Statement | |
31 hi def link debsourcesDistrKeyword Type | |
32 hi def link debsourcesComment Comment | |
33 hi def link debsourcesUri Constant | |
34 | |
35 let b:current_syntax = "debsources" |