Mercurial > vim
annotate runtime/syntax/taskdata.vim @ 9798:e34e4547f3d1 v7.4.2174
commit https://github.com/vim/vim/commit/c8ce615299b4d8c1b2e6cf83496f48cd497d8a37
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 7 13:48:20 2016 +0200
patch 7.4.2174
Problem: Adding duplicate flags to 'whichwrap' leaves commas behind.
Solution: Also remove the commas. (Naruhiko Nishino)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 07 Aug 2016 14:00:06 +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 |