blob: 63a8284adfa5cf2a46f794780eb59a882ac29346 [file] [log] [blame]
Bram Moolenaar5c736222010-01-06 20:54:52 +01001" Vim syntax file
2" Language: task data
3" Maintainer: John Florian <jflorian@doubledog.org>
4" Updated: Wed Jul 8 19:46:20 EDT 2009
5
6
Bram Moolenaar89bcfda2016-08-30 23:26:57 +02007" quit when a syntax file was already loaded.
8if exists("b:current_syntax")
Bram Moolenaar5c736222010-01-06 20:54:52 +01009 finish
10endif
Bram Moolenaar9a7224b2012-04-30 15:56:52 +020011let s:keepcpo= &cpo
12set cpo&vim
Bram Moolenaar5c736222010-01-06 20:54:52 +010013
14" Key Names for values.
15syn keyword taskdataKey description due end entry imask mask parent
16syn keyword taskdataKey priority project recur start status tags uuid
17syn match taskdataKey "annotation_\d\+"
18syn match taskdataUndo "^time.*$"
19syn match taskdataUndo "^\(old \|new \|---\)"
20
21" Values associated with key names.
22"
23" Strings
24syn region taskdataString matchgroup=Normal start=+"+ end=+"+
25 \ contains=taskdataEncoded,taskdataUUID,@Spell
26"
27" Special Embedded Characters (e.g., "&comma;")
28syn match taskdataEncoded "&\a\+;" contained
29" UUIDs
30syn match taskdataUUID "\x\{8}-\(\x\{4}-\)\{3}\x\{12}" contained
31
32
33" The default methods for highlighting. Can be overridden later.
34hi def link taskdataEncoded Function
35hi def link taskdataKey Statement
36hi def link taskdataString String
37hi def link taskdataUUID Special
38hi def link taskdataUndo Type
39
40let b:current_syntax = "taskdata"
41
Bram Moolenaar9a7224b2012-04-30 15:56:52 +020042let &cpo = s:keepcpo
43unlet s:keepcpo
44
Bram Moolenaar5c736222010-01-06 20:54:52 +010045" vim:noexpandtab