Mercurial > vim
annotate runtime/syntax/taskdata.vim @ 6020:ad005d0114c1 v7.4.350
updated for version 7.4.350
Problem: Using C indenting for Javascript does not work well for a {} block
inside parenthesis.
Solution: When looking for a matching paren ignore one that is before the
start of a {} block.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 02 Jul 2014 18:27:48 +0200 |
parents | d1e4abe8342c |
children | 43efa4f5a8ea |
rev | line source |
---|---|
2034 | 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 | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
14 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
15 set cpo&vim |
2034 | 16 |
17 " Key Names for values. | |
18 syn keyword taskdataKey description due end entry imask mask parent | |
19 syn keyword taskdataKey priority project recur start status tags uuid | |
20 syn match taskdataKey "annotation_\d\+" | |
21 syn match taskdataUndo "^time.*$" | |
22 syn match taskdataUndo "^\(old \|new \|---\)" | |
23 | |
24 " Values associated with key names. | |
25 " | |
26 " Strings | |
27 syn region taskdataString matchgroup=Normal start=+"+ end=+"+ | |
28 \ contains=taskdataEncoded,taskdataUUID,@Spell | |
29 " | |
30 " Special Embedded Characters (e.g., ",") | |
31 syn match taskdataEncoded "&\a\+;" contained | |
32 " UUIDs | |
33 syn match taskdataUUID "\x\{8}-\(\x\{4}-\)\{3}\x\{12}" contained | |
34 | |
35 | |
36 " The default methods for highlighting. Can be overridden later. | |
37 hi def link taskdataEncoded Function | |
38 hi def link taskdataKey Statement | |
39 hi def link taskdataString String | |
40 hi def link taskdataUUID Special | |
41 hi def link taskdataUndo Type | |
42 | |
43 let b:current_syntax = "taskdata" | |
44 | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
45 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
46 unlet s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
47 |
2034 | 48 " vim:noexpandtab |