diff --git a/syntax/todo.txt.vim b/syntax/todo.txt.vim index cefc342..1b7cfa9 100644 --- a/syntax/todo.txt.vim +++ b/syntax/todo.txt.vim @@ -9,36 +9,38 @@ if exists("b:current_syntax") finish endif -syntax match TodoComplete '^[xX].*$' -syntax match TodoNoPriotity '^[^(xX].*$' -syntax match TodoPriorityA '^([aA]).*$' -syntax match TodoPriorityB '^([bB]).*$' -syntax match TodoPriorityC '^([cC]).*$' -syntax match TodoPriorityD '^([dD]).*$' -syntax match TodoPriorityE '^([eE]).*$' -syntax match TodoPriorityF '^([fF]).*$' -syntax match TodoPriorityG '^([gG]).*$' -syntax match TodoPriorityH '^([hH]).*$' -syntax match TodoPriorityI '^([iI]).*$' -syntax match TodoPriorityJ '^([jJ]).*$' -syntax match TodoPriorityK '^([kK]).*$' -syntax match TodoPriorityL '^([lL]).*$' -syntax match TodoPriorityM '^([mM]).*$' -syntax match TodoPriorityN '^([nN]).*$' -syntax match TodoPriorityO '^([oO]).*$' -syntax match TodoPriorityP '^([pP]).*$' -syntax match TodoPriorityQ '^([qQ]).*$' -syntax match TodoPriorityR '^([rR]).*$' -syntax match TodoPriorityS '^([sS]).*$' -syntax match TodoPriorityT '^([tT]).*$' -syntax match TodoPriorityU '^([uU]).*$' -syntax match TodoPriorityV '^([vV]).*$' -syntax match TodoPriorityW '^([wW]).*$' -syntax match TodoPriorityX '^([xX]).*$' -syntax match TodoPriorityY '^([yY]).*$' -syntax match TodoPriorityZ '^([zZ]).*$' +syntax match TodoDone '^[xX]\s.*$' +syntax match TodoPriorityA '^([aA])\s.*$' +syntax match TodoPriorityB '^([bB])\s.*$' +syntax match TodoPriorityC '^([cC])\s.*$' +syntax match TodoPriorityD '^([dD])\s.*$' +syntax match TodoPriorityE '^([eE])\s.*$' +syntax match TodoPriorityF '^([fF])\s.*$' +syntax match TodoPriorityG '^([gG])\s.*$' +syntax match TodoPriorityH '^([hH])\s.*$' +syntax match TodoPriorityI '^([iI])\s.*$' +syntax match TodoPriorityJ '^([jJ])\s.*$' +syntax match TodoPriorityK '^([kK])\s.*$' +syntax match TodoPriorityL '^([lL])\s.*$' +syntax match TodoPriorityM '^([mM])\s.*$' +syntax match TodoPriorityN '^([nN])\s.*$' +syntax match TodoPriorityO '^([oO])\s.*$' +syntax match TodoPriorityP '^([pP])\s.*$' +syntax match TodoPriorityQ '^([qQ])\s.*$' +syntax match TodoPriorityR '^([rR])\s.*$' +syntax match TodoPriorityS '^([sS])\s.*$' +syntax match TodoPriorityT '^([tT])\s.*$' +syntax match TodoPriorityU '^([uU])\s.*$' +syntax match TodoPriorityV '^([vV])\s.*$' +syntax match TodoPriorityW '^([wW])\s.*$' +syntax match TodoPriorityX '^([xX])\s.*$' +syntax match TodoPriorityY '^([yY])\s.*$' +syntax match TodoPriorityZ '^([zZ])\s.*$' -highlight default TodoPriorityA guifg=Red ctermfg=Red -" TODO +" Other priority colours might be defined by the user +highlight default link TodoDone Comment +highlight default link TodoPriorityA Constant +highlight default link TodoPriorityB Statement +highlight default link TodoPriorityC Identifier let b:current_syntax = "todo.txt"