From 701a0a4ddafcb0f5ad6b56d7c6cefb385dacd530 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 1 Oct 2013 14:19:28 +0200 Subject: Todo++ --- syntax/todo.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax/todo.vim b/syntax/todo.vim index 1902d42..2824481 100644 --- a/syntax/todo.vim +++ b/syntax/todo.vim @@ -11,9 +11,11 @@ endif setlocal iskeyword+=- syntax case ignore -syn match Todo /([^)]*)/ containedin=ALLBUT,todoDone,todoTaskDone +syn match Todo /([^)]*)/ containedin=ALLBUT,todoDone,todoTaskDone syn match String /\[[^\]]*\]/ containedin=ALL +syn match todoKeyWord /[A-Z_-]\+:/ + syn region todoTitle start=/^\z\(\s*\)\*/ end=/$/ syn region todoTask1 start=/^\z\(\s*\)+/ end=/$/ syn region todoTask2 start=/^\z\(\s*\)→/ end=/$/ @@ -35,4 +37,6 @@ hi link rtTicket SpellRare hi link todoDone NonText hi link todoTaskDone NonText +hi link todoKeyWord PreProc + let b:current_syntax="todo" -- cgit v1.2.3