forked from davidoc/taskpaper.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskpaper.vim
45 lines (36 loc) · 1.21 KB
/
taskpaper.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
" Vim syntax file
" Language: Taskpaper (http://hogbaysoftware.com/projects/taskpaper)
" Maintainer: David O'Callaghan <david.ocallaghan@cs.tcd.ie>
" URL: http://www.cs.tcd.ie/David.OCallaghan/taskpaper.vim/
" Version: 1
" Last Change: 2007 Sep 25
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
endif
if version < 508
command! -nargs=+ HiLink hi link <args>
else
command! -nargs=+ HiLink hi def link <args>
endif
syn case ignore
syn match taskpaperComment "^.*$"
syn match taskpaperProject /^.\+:\s*$/
syn match taskpaperLineContinue ".$" contained
syn match taskpaperListItem "^\s*[-+]\s\+"
syn match taskpaperContext "@[A-Za-z0-9_]\+"
syn match taskpaperDone "^\s*[-+]\s\+.*@[Dd]one.*$"
syn match taskpaperCanceled "^\s*[-+]\s\+.*@[Cc]anceled.*$"
syn region taskpaperProjectFold start=/^.\+:\s*$/ end=/^\s*$/ transparent fold
syn sync fromstart
"highlighting for Taskpaper groups
HiLink taskpaperListItem Identifier
HiLink taskpaperContext Identifier
HiLink taskpaperProject Title
HiLink taskpaperDone NonText
HiLink taskpaperCanceled NonText
HiLink taskpaperComment Comment
let b:current_syntax = "taskpaper"
delcommand HiLink
" vim: ts=8