Mercurial > vim
annotate runtime/syntax/taskdata.vim @ 23715:b6d8d9578375 v8.2.2399
patch 8.2.2399: fold test fails in wide terminal
Commit: https://github.com/vim/vim/commit/7cf0c114d690c91ac88c92a1a6f1b1935cb6410f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 24 12:00:01 2021 +0100
patch 8.2.2399: fold test fails in wide terminal
Problem: Fold test fails in wide terminal.
Solution: Adjust the test. (Dominique Pelle, closes https://github.com/vim/vim/issues/7731, closes https://github.com/vim/vim/issues/7739)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 24 Jan 2021 12:15:04 +0100 |
parents | 43efa4f5a8ea |
children |
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 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3496
diff
changeset
|
7 " quit when a syntax file was already loaded. |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
3496
diff
changeset
|
8 if exists("b:current_syntax") |
2034 | 9 finish |
10 endif | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
11 let s:keepcpo= &cpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
12 set cpo&vim |
2034 | 13 |
14 " Key Names for values. | |
15 syn keyword taskdataKey description due end entry imask mask parent | |
16 syn keyword taskdataKey priority project recur start status tags uuid | |
17 syn match taskdataKey "annotation_\d\+" | |
18 syn match taskdataUndo "^time.*$" | |
19 syn match taskdataUndo "^\(old \|new \|---\)" | |
20 | |
21 " Values associated with key names. | |
22 " | |
23 " Strings | |
24 syn region taskdataString matchgroup=Normal start=+"+ end=+"+ | |
25 \ contains=taskdataEncoded,taskdataUUID,@Spell | |
26 " | |
27 " Special Embedded Characters (e.g., ",") | |
28 syn match taskdataEncoded "&\a\+;" contained | |
29 " UUIDs | |
30 syn match taskdataUUID "\x\{8}-\(\x\{4}-\)\{3}\x\{12}" contained | |
31 | |
32 | |
33 " The default methods for highlighting. Can be overridden later. | |
34 hi def link taskdataEncoded Function | |
35 hi def link taskdataKey Statement | |
36 hi def link taskdataString String | |
37 hi def link taskdataUUID Special | |
38 hi def link taskdataUndo Type | |
39 | |
40 let b:current_syntax = "taskdata" | |
41 | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
42 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
43 unlet s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
44 |
2034 | 45 " vim:noexpandtab |