Added a space before rules to match projects and contexts in order to avoid false-positive matches such as email addresses and keystroke combinations (such as CTRL+f) in your todo tasks.

This commit is contained in:
Dean Householder
2014-03-03 09:58:14 -07:00
parent 5a2eb56f8e
commit 6ce6821890

View File

@@ -37,8 +37,8 @@ syntax match TodoPriorityX '^([xX])\s.\+$' contains=TodoDate,TodoP
syntax match TodoPriorityY '^([yY])\s.\+$' contains=TodoDate,TodoProject,TodoContext
syntax match TodoPriorityZ '^([zZ])\s.\+$' contains=TodoDate,TodoProject,TodoContext
syntax match TodoDate '\d\{2,4\}-\d\{2\}-\d\{2\}' contains=NONE
syntax match TodoProject '+[^[:blank:]]\+' contains=NONE
syntax match TodoContext '@[^[:blank:]]\+' contains=NONE
syntax match TodoProject ' +[^[:blank:]]\+' contains=NONE
syntax match TodoContext ' @[^[:blank:]]\+' contains=NONE
" Other priority colours might be defined by the user
highlight default link TodoDone Comment