Files
todo.txt-cli/vim/syntax/todo-list.vim
2009-12-02 12:09:51 -06:00

20 lines
578 B
VimL

if exists("b:current_syntax")
finish
endif
syntax match todoItemID /^\d\+/ contained
syntax match todoItemProject /+[^ ]\+/ contained
syntax match todoItemContext /@[^ ]\+/ contained
syntax match todoItemText /^\d\+ .*$/ contains=todoItemID,todoItemProject,todoItemContext
syntax match todoItemSeparator +--+
syntax match todoItemSummary /^TODO:.*/
hi link todoItemID Statement
hi link todoItemProject SpecialKey
hi link todoItemContext Title
hi link todoItemText Comment
hi link todoItemSeparator Ignore
hi link todoItemSummary Ignore
let b:current_syntax = "todo-list"