added some additional mappings, plus a project context

This commit is contained in:
Brian Phillips
2009-12-02 14:37:36 -06:00
parent 9a56bdd4ed
commit b8ced51a22
2 changed files with 64 additions and 13 deletions

View File

@@ -3,16 +3,26 @@ if exists("b:current_syntax")
endif
syntax match todoItemID /^\d\+/ contained
syntax match todoItemPriorityA /(A)/ contained
syntax match todoItemPriorityB /(B)/ contained
syntax match todoItemPriorityC /(C)/ contained
syntax match todoItemPriority /([D-Z])/ contained
syntax match todoItemProject /+[^ ]\+/ contained
syntax match todoItemContext /@[^ ]\+/ contained
syntax match todoItemText /^\d\+ .*$/ contains=todoItemID,todoItemProject,todoItemContext
syntax match todoItemText /^\d\+ .*$/ contains=todoItemID,todoItemProject,todoItemContext,todoItemPriority,todoItemPriorityA,todoItemPriorityB,todoItemPriorityC
syntax match todoItemSeparator +--+
syntax match todoItemSummary /^TODO:.*/
hi link todoItemID Statement
hi link todoItemProject SpecialKey
hi link todoItemContext Title
hi link todoItemProject Identifier
hi link todoItemContext Type
hi link todoItemText Comment
hi link todoItemPriority Constant
hi link todoItemPriorityA Todo
hi link todoItemPriorityB Visual
hi link todoItemPriorityC DiffAdd
hi link todoItemSeparator Ignore
hi link todoItemSummary Ignore