Merged from the latest developing branch.
[MacVim.git] / runtime / syntax / debsources.vim
blob0ae05abd680d9d70ce7d898c57dff7e836e08faa
1 " Vim syntax file
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>
5 " Last Change: 2008-04-25
6 " URL: http://git.debian.org/?p=pkg-vim/vim.git;a=blob_plain;f=runtime/syntax/debsources.vim;hb=debian
8 " Standard syntax initialization
9 if version < 600
10   syntax clear
11 elseif exists("b:current_syntax")
12   finish
13 endif
15 " case sensitive
16 syn case match
18 " A bunch of useful keywords
19 syn match debsourcesKeyword        /\(deb-src\|deb\|main\|contrib\|non-free\|restricted\|universe\|multiverse\)/
21 " Match comments
22 syn match debsourcesComment        /#.*/
24 " Match uri's
25 syn match debsourcesUri            +\(http://\|ftp://\|[rs]sh://\|debtorrent://\|\(cdrom\|copy\|file\):\)[^'    <>"]\++
26 syn match debsourcesDistrKeyword   +\([[:alnum:]_./]*\)\(sarge\|etch\|lenny\|\(old\)\=stable\|testing\|unstable\|sid\|experimental\|dapper\|feisty\|gutsy\|hardy\|intrepid\)\([-[:alnum:]_./]*\)+
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
35 let b:current_syntax = "debsources"
37 " vim: ts=8