blob: c952ed82c653866e17870862946e0b5c6c70b65d [file] [log] [blame]
Bram Moolenaard2cec5b2006-03-28 21:08:56 +00001" Vim syntax file
2" Language: Debian sources.list
3" Maintainer: Matthijs Mohlmann <matthijs@cacholong.nl>
4" Last Change: $Date$
5" URL: http://www.cacholong.nl/~matthijs/vim/syntax/debsources.vim
6" $Revision$
7
8" this is a very simple syntax file - I will be improving it
9" add entire DEFINE syntax
10
11" Standard syntax initialization
12if version < 600
13 syntax clear
14elseif exists("b:current_syntax")
15 finish
16endif
17
18" case sensitive
19syn case match
20
21" A bunch of useful keywords
22syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\)/
23
24" Match comments
25syn match debsourcesComment /#.*/
26
27" Match uri's
28syn match debsourcesUri +\(http://\|ftp://\|file:///\)[^' <>"]\++
29syn match debsourcesDistrKeyword +\([[:alnum:]_./]*\)\(woody\|sarge\|etch\|old-stable\|stable\|testing\|unstable\|sid\|experimental\|warty\|hoary\|breezy\)\([[:alnum:]_./]*\)+
30
31" Associate our matches and regions with pretty colours
32hi def link debsourcesLine Error
33hi def link debsourcesKeyword Statement
34hi def link debsourcesDistrKeyword Type
35hi def link debsourcesComment Comment
36hi def link debsourcesUri Constant
37
38let b:current_syntax = "debsources"
39
40" vim: ts=8