vim updates
[~madcoder/dotfiles.git] / vim / syntax / debhints.vim
1 " Vim syntax file
2
3 " Quit when a (custom) syntax file was already loaded
4 if exists("b:current_syntax")
5   finish
6 endif
7
8 setlocal iskeyword+=-
9
10 syn region      hintComment     start=/^#/ end=/$/ contains=hintDate
11 syn region      hintLine        start=/^[^#]/ end=/$/ contains=hintCommand,hintPkgSpec
12
13 syn match       hintDate        contained "\<20[0-9]\{6\}\>"
14
15 syn keyword     hintCommand     contained hint easy force-hint remove force block approve unblock urgent age-days block-all finished nextgroup=hintPkgSpec
16 syn match       hintPkgSpec     contained "\(\w\|-\)\+\/\(\w\|[.~+\-]\)\+" contains=hintPkgVersion
17 syn match       hintPkgVersion  contained "\/\(\w\|[.~+\-]\)\+"hs=s+1
18
19
20 " Define the default highlighting.
21 " Only used when an item doesn't have highlighting yet
22 hi def link hintDate    Include
23 hi def link hintComment Comment
24
25 hi def link hintCommand Keyword
26 hi def link hintPkgVersion Number
27
28 let b:current_syntax = "debhints"
29
30 " vim: ts=8 sw=2