vim support! (first cut, anyway)

This commit is contained in:
Brian Phillips
2009-12-02 12:09:51 -06:00
parent 9b580acf14
commit 9a56bdd4ed
2 changed files with 145 additions and 0 deletions

19
vim/syntax/todo-list.vim Normal file
View File

@@ -0,0 +1,19 @@
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"