Mercurial > vim
annotate runtime/syntax/taskedit.vim @ 8092:d82fb42b611b v7.4.1340
commit https://github.com/vim/vim/commit/7d63f624603ebeae336d4c504f82ab3da3481f46
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 16 20:31:31 2016 +0100
patch 7.4.1340
Problem: Merge left extra #endif behind.
Solution: Remove the #endif
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 16 Feb 2016 20:45:05 +0100 |
parents | d1e4abe8342c |
children | 43efa4f5a8ea |
rev | line source |
---|---|
2034 | 1 " Vim syntax file |
2 " Language: support for 'task 42 edit' | |
3 " Maintainer: John Florian <jflorian@doubledog.org> | |
4 " Updated: Wed Jul 8 19:46:32 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 syn match taskeditHeading "^\s*#\s*Name\s\+Editable details\s*$" contained | |
18 syn match taskeditHeading "^\s*#\s*-\+\s\+-\+\s*$" contained | |
19 syn match taskeditReadOnly "^\s*#\s*\(UU\)\?ID:.*$" contained | |
20 syn match taskeditReadOnly "^\s*#\s*Status:.*$" contained | |
21 syn match taskeditReadOnly "^\s*#\s*i\?Mask:.*$" contained | |
22 syn match taskeditKey "^ *.\{-}:" nextgroup=taskeditString | |
23 syn match taskeditComment "^\s*#.*$" | |
24 \ contains=taskeditReadOnly,taskeditHeading | |
25 syn match taskeditString ".*$" contained contains=@Spell | |
26 | |
27 | |
28 " The default methods for highlighting. Can be overridden later. | |
29 hi def link taskeditComment Comment | |
30 hi def link taskeditHeading Function | |
31 hi def link taskeditKey Statement | |
32 hi def link taskeditReadOnly Special | |
33 hi def link taskeditString String | |
34 | |
35 let b:current_syntax = "taskedit" | |
36 | |
3496
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
37 let &cpo = s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
38 unlet s:keepcpo |
d1e4abe8342c
Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
39 |
2034 | 40 " vim:noexpandtab |