Mercurial > vim
comparison runtime/syntax/taskdata.vim @ 2034:7bc41231fbc7
Update runtime files.
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Wed, 06 Jan 2010 20:54:52 +0100 |
parents | |
children | d1e4abe8342c |
comparison
equal
deleted
inserted
replaced
2033:de5a43c5eedc | 2034:7bc41231fbc7 |
---|---|
1 " 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 | |
7 " For version 5.x: Clear all syntax items. | |
8 " For version 6.x: Quit when a syntax file was already loaded. | |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | |
13 endif | |
14 | |
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 \|---\)" | |
21 | |
22 " Values associated with key names. | |
23 " | |
24 " Strings | |
25 syn region taskdataString matchgroup=Normal start=+"+ end=+"+ | |
26 \ contains=taskdataEncoded,taskdataUUID,@Spell | |
27 " | |
28 " Special Embedded Characters (e.g., ",") | |
29 syn match taskdataEncoded "&\a\+;" contained | |
30 " UUIDs | |
31 syn match taskdataUUID "\x\{8}-\(\x\{4}-\)\{3}\x\{12}" contained | |
32 | |
33 | |
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 | |
40 | |
41 let b:current_syntax = "taskdata" | |
42 | |
43 " vim:noexpandtab |