mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-24 23:56:41 +02:00
syntax: Add highlighting for the deleted tasks
This commit is contained in:
parent
94eed59c0d
commit
1ec33cd496
1 changed files with 6 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
|||
let s:conceal = exists("+conceallevel") ? ' conceal': ''
|
||||
|
||||
" Conceal the UUID
|
||||
execute 'syn match VimwikiTaskUuid containedin=VimwikiCheckBoxDone,VimwikiCheckBoxActive /\v#([A-Z]:)?[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#([A-Z]:)?[0-9a-fA-F]{8}$/'.s:conceal
|
||||
execute 'syn match VimwikiTaskUuid containedin=VimwikiCheckBoxDone,VimwikiCheckBoxActive,VimwikiCheckBoxDeleted /\v#([A-Z]:)?[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,VimwikiCheckBoxDeleted /\v#([A-Z]:)?[0-9a-fA-F]{8}$/'.s:conceal
|
||||
|
||||
" Conceal header definitions
|
||||
for s:i in range(1,6)
|
||||
|
@ -14,6 +14,10 @@ endfor
|
|||
syntax match VimwikiCheckBoxActive /\s*\*\s*\[S\]\s.*$/
|
||||
hi def link VimwikiCheckBoxActive Type
|
||||
|
||||
" Highlight deleted tasks
|
||||
syntax match VimwikiCheckBoxDeleted /\s*\*\s*\[D\]\s.*$/
|
||||
hi def link VimwikiCheckBoxDeleted Error
|
||||
|
||||
" Highlight the UUID as comment
|
||||
hi link VimwikiTaskUuid Comment
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue