Bram Moolenaar | d2cec5b | 2006-03-28 21:08:56 +0000 | [diff] [blame] | 1 | " 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 |
| 12 | if version < 600 |
| 13 | syntax clear |
| 14 | elseif exists("b:current_syntax") |
| 15 | finish |
| 16 | endif |
| 17 | |
| 18 | " case sensitive |
| 19 | syn case match |
| 20 | |
| 21 | " A bunch of useful keywords |
| 22 | syn match debsourcesKeyword /\(deb-src\|deb\|main\|contrib\|non-free\)/ |
| 23 | |
| 24 | " Match comments |
| 25 | syn match debsourcesComment /#.*/ |
| 26 | |
| 27 | " Match uri's |
| 28 | syn match debsourcesUri +\(http://\|ftp://\|file:///\)[^' <>"]\++ |
| 29 | syn 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 |
| 32 | hi def link debsourcesLine Error |
| 33 | hi def link debsourcesKeyword Statement |
| 34 | hi def link debsourcesDistrKeyword Type |
| 35 | hi def link debsourcesComment Comment |
| 36 | hi def link debsourcesUri Constant |
| 37 | |
| 38 | let b:current_syntax = "debsources" |
| 39 | |
| 40 | " vim: ts=8 |