syntax: Add syntax highlightning for active tasks

This commit is contained in:
Tomas Babej 2015-03-23 07:44:25 +01:00
parent 6a5432a677
commit 087bfa7f7e

View file

@ -1,5 +1,8 @@
syntax match VimwikiCheckBoxActive /\*\s*\[S\]\s.*$/
hi def link VimwikiCheckBoxActive Type
let s:conceal = exists("+conceallevel") ? ' conceal': ''
execute 'syn match VimwikiTaskUuid containedin=VimwikiCheckBoxDone /\v#[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/'.s:conceal
execute 'syn match VimwikiTaskUuid containedin=VimwikiCheckBoxDone,VimwikiCheckBoxActive /\v#[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}/'.s:conceal
hi link VimwikiTaskUuid Comment
set conceallevel=3
set concealcursor=nc