1" Vim syntax file
2" Language:     Debian sources.list
3" Maintainer:   Debian Vim Maintainers <[email protected]>
4" Former Maintainer: Matthijs Mohlmann <[email protected]>
5" Last Change: 2010 May 06
6" URL: http://hg.debian.org/hg/pkg-vim/vim/raw-file/tip/runtime/syntax/debsources.vim
7
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
19syn match debsourcesKeyword        /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/
20
21" Match comments
22syn match debsourcesComment        /#.*/  contains=@Spell
23
24" Match uri's
25syn match debsourcesUri            +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^' 	<>"]\++
26syn match debsourcesDistrKeyword   +\([[:alnum:]_./]*\)\(etch\|lenny\|squeeze\|\(old\)\=stable\|testing\|unstable\|sid\|rc-buggy\|experimental\|dapper\|hardy\|jaunty\|karmic\|lucid\|maverick\)\([-[:alnum:]_./]*\)+
27
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"
36