3 " Maintainer: John Florian <jflorian@doubledog.org>
4 " Updated: Wed Jul 8 19:46:20 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 " Key Names for values.
16 syn keyword taskdataKey description due end entry imask mask parent
17 syn keyword taskdataKey priority project recur start status tags uuid
18 syn match taskdataKey "annotation_\d\+"
19 syn match taskdataUndo "^time.*$"
20 syn match taskdataUndo "^\(old \|new \|---\)"
22 " Values associated with key names.
25 syn region taskdataString matchgroup=Normal start=+"+ end=+"+
26 \ contains=taskdataEncoded,taskdataUUID,@Spell
28 " Special Embedded Characters (e.g., ",")
29 syn match taskdataEncoded "&\a\+;" contained
31 syn match taskdataUUID "\x\{8}-\(\x\{4}-\)\{3}\x\{12}" contained
34 " The default methods for highlighting. Can be overridden later.
35 hi def link taskdataEncoded Function
36 hi def link taskdataKey Statement
37 hi def link taskdataString String
38 hi def link taskdataUUID Special
39 hi def link taskdataUndo Type
41 let b:current_syntax = "taskdata"