blob: f3de367f607eb9ea51cd02f24377e03c30da0a5c [file] [log] [blame]
Bram Moolenaard2cec5b2006-03-28 21:08:56 +00001" Vim syntax file
Bram Moolenaarc236c162008-07-13 17:41:49 +00002" Language: Debian sources.list
3" Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
4" Former Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
Bram Moolenaar05365702010-10-27 18:34:44 +02005" Last Change: 2010 Oct 21
6" URL: http://hg.debian.org/hg/pkg-vim/vim/raw-file/unstable/runtime/syntax/debsources.vim
Bram Moolenaard2cec5b2006-03-28 21:08:56 +00007
8" Standard syntax initialization
9if version < 600
10 syntax clear
11elseif exists("b:current_syntax")
12 finish
13endif
14
15" case sensitive
16syn case match
17
18" A bunch of useful keywords
Bram Moolenaarc236c162008-07-13 17:41:49 +000019syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/
Bram Moolenaard2cec5b2006-03-28 21:08:56 +000020
21" Match comments
Bram Moolenaar5c736222010-01-06 20:54:52 +010022syn match debsourcesComment /#.*/ contains=@Spell
Bram Moolenaard2cec5b2006-03-28 21:08:56 +000023
24" Match uri's
Bram Moolenaarc236c162008-07-13 17:41:49 +000025syn match debsourcesUri +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' <>"]\++
Bram Moolenaar05365702010-10-27 18:34:44 +020026syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(lenny\|squeeze\|\(old\)\=stable\|testing\|unstable\|sid\|rc-buggy\|experimental\|dapper\|hardy\|jaunty\|karmic\|lucid\|maverick\|natty\)\([-[:alnum:]_./]*\)+
Bram Moolenaard2cec5b2006-03-28 21:08:56 +000027
28" Associate our matches and regions with pretty colours
29hi def link debsourcesLine Error
30hi def link debsourcesKeyword Statement
31hi def link debsourcesDistrKeyword Type
32hi def link debsourcesComment Comment
33hi def link debsourcesUri Constant
34
35let b:current_syntax = "debsources"