2 " Language: support for 'task 42 edit'
3 " Maintainer: John Florian <jflorian@doubledog.org>
4 " Updated: Wed Jul 8 19:46:32 EDT 2009
7 " For version 5.x: Clear all syntax items.
8 " For version 6.x: Quit when a syntax file was already loaded.
11 elseif exists("b:current_syntax")
15 syn match taskeditHeading "^\s*#\s*Name\s\+Editable details\s*$" contained
16 syn match taskeditHeading "^\s*#\s*-\+\s\+-\+\s*$" contained
17 syn match taskeditReadOnly "^\s*#\s*\(UU\)\?ID:.*$" contained
18 syn match taskeditReadOnly "^\s*#\s*Status:.*$" contained
19 syn match taskeditReadOnly "^\s*#\s*i\?Mask:.*$" contained
20 syn match taskeditKey "^ *.\{-}:" nextgroup=taskeditString
21 syn match taskeditComment "^\s*#.*$"
22 \ contains=taskeditReadOnly,taskeditHeading
23 syn match taskeditString ".*$" contained contains=@Spell
26 " The default methods for highlighting. Can be overridden later.
27 hi def link taskeditComment Comment
28 hi def link taskeditHeading Function
29 hi def link taskeditKey Statement
30 hi def link taskeditReadOnly Special
31 hi def link taskeditString String
33 let b:current_syntax = "taskedit"