X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=todo.vim;h=15b2b75dbf863ce99075688edd1a3c50e4adf2ea;hb=c920e02bb36d559047b8238365ea8bae1740cd25;hp=f298b527869afdac9347bebf09b9bb6cb7702b22;hpb=64ffc284085b8c40f7d9f705e0394b3831953689;p=vim-syntax.git diff --git a/todo.vim b/todo.vim index f298b52..15b2b75 100644 --- a/todo.vim +++ b/todo.vim @@ -1,20 +1,35 @@ -highlight level1 ctermfg=LightGrey ctermbg=Red -highlight level2 ctermfg=Red ctermbg=Black -highlight level3 ctermfg=DarkRed ctermbg=Black -highlight level4 ctermfg=DarkYellow ctermbg=Black -highlight VICTORY ctermfg=Black ctermbg=Blue -highlight maybedone ctermfg=Black ctermbg=DarkGreen -highlight headline ctermfg=Black ctermbg=LightGrey -"highlight moot ctermfg=DarkGrey ctermbg=Black +highlight partial ctermfg=DarkYellow +highlight done ctermfg=DarkGreen +highlight maybedone ctermfg=Blue +highlight headline ctermfg=White cterm=bold,underline +highlight moot ctermfg=DarkGrey -syntax match level1 /^[*][*][*][*][^*]\zs.*/ -syntax match level2 /^[*][*][*][^*]\zs.*/ -syntax match level3 /^[*][*][^*]\zs.*/ -syntax match level4 /^[*][^*]\zs.*/ -syntax match VICTORY /^\(VICTORY\|DONE\|YAY\)!\?[^ ]* \zs.*/ -syntax match maybedone /^done?.\zs.*/ -syntax match moot /^[#?].*/ -syntax match headline /^ \+\zs[^ ]*/ +syntax match partial /^*\+\t\+\zs.*p[0-9]\{1,2}$/ +syntax match done /^\(VICTORY\|DONE\|done\|YAY\|:)\|!\|+\)!\?\t\+\zs.*/ +syntax match done /^\*\+\t\+\zs.*[^0-9]$/ +syntax match done /^\*\+\t\+\zs.*[^p0-9].$/ +syntax match done /^\*\+\t\+\zs.*[^p][0-9][0-9]$/ +syntax match done /^\*\+\t\+\zs.*p1$/ +syntax match done /^\*\*\+\t\+\zs.*p2$/ +syntax match done /^\*\*\*\+\t\+\zs.*p3$/ +syntax match done /^\*\*\*\*\+\t\+\zs.*p4$/ +syntax match done /^\*\*\*\*\*\+\t\+\zs.*p5$/ +syntax match done /^\*\*\*\*\*\*\+\t\+\zs.*p6$/ +syntax match done /^\*\*\*\*\*\*\*\+\t\+\zs.*p7$/ +syntax match done /^\*\*\*\*\*\*\*\*\+\t\+\zs.*p8$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p9$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p10$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p11$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p12$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p13$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p14$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p15$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p16$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p17$/ +syntax match done /^\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\+\t\+\zs.*p18$/ +syntax match maybedone /^\(done\)\??\t\+\zs.*/ +syntax match moot /^[#]\t\+.*/ +syntax match headline /^ \+\zs[^\t]*/ set tabstop=8 set shiftwidth=8