vim support! (first cut, anyway)
This commit is contained in:
19
vim/syntax/todo-list.vim
Normal file
19
vim/syntax/todo-list.vim
Normal 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"
|
||||
Reference in New Issue
Block a user