3 " Quit when a (custom) syntax file was already loaded
4 if exists("b:current_syntax")
10 syn region hintComment start=/^#/ end=/$/ contains=hintDate
11 syn region hintLine start=/^[^#]/ end=/$/ contains=hintCommand,hintPkgSpec
13 syn match hintDate contained "\<20[0-9]\{6\}\>"
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
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
25 hi def link hintCommand Keyword
26 hi def link hintPkgVersion Number
28 let b:current_syntax = "debhints"