Highlight done and rejected list item the same way
This commit is contained in:
parent
a2a9f2e6ca
commit
13271541a6
@ -399,14 +399,16 @@ function! vimwiki#vars#populate_syntax_vars(syntax)
|
|||||||
\ . vimwiki#vars#get_global('listsym_rejected').']\)\]\s\)\?'
|
\ . vimwiki#vars#get_global('listsym_rejected').']\)\]\s\)\?'
|
||||||
if g:vimwiki_syntax_variables[a:syntax].recurring_bullets
|
if g:vimwiki_syntax_variables[a:syntax].recurring_bullets
|
||||||
let g:vimwiki_syntax_variables[a:syntax].rxListItemAndChildren =
|
let g:vimwiki_syntax_variables[a:syntax].rxListItemAndChildren =
|
||||||
\ '^\('.g:vimwiki_syntax_variables[a:syntax].rxListBullet.'\)\s\+\['
|
\ '^\('.g:vimwiki_syntax_variables[a:syntax].rxListBullet.'\)\s\+\[['
|
||||||
\ . g:vimwiki_syntax_variables[a:syntax].listsyms_list[-1].'\]\s.*\%(\n\%(\1\%('
|
\ . g:vimwiki_syntax_variables[a:syntax].listsyms_list[-1]
|
||||||
|
\ . vimwiki#vars#get_global('listsym_rejected') . ']\]\s.*\%(\n\%(\1\%('
|
||||||
\ .g:vimwiki_syntax_variables[a:syntax].rxListBullet.'\).*\|^$\|\s.*\)\)*'
|
\ .g:vimwiki_syntax_variables[a:syntax].rxListBullet.'\).*\|^$\|\s.*\)\)*'
|
||||||
else
|
else
|
||||||
let g:vimwiki_syntax_variables[a:syntax].rxListItemAndChildren =
|
let g:vimwiki_syntax_variables[a:syntax].rxListItemAndChildren =
|
||||||
\ '^\(\s*\)\%('.g:vimwiki_syntax_variables[a:syntax].rxListBullet.'\|'
|
\ '^\(\s*\)\%('.g:vimwiki_syntax_variables[a:syntax].rxListBullet.'\|'
|
||||||
\ . g:vimwiki_syntax_variables[a:syntax].rxListNumber.'\)\s\+\['
|
\ . g:vimwiki_syntax_variables[a:syntax].rxListNumber.'\)\s\+\[['
|
||||||
\ . g:vimwiki_syntax_variables[a:syntax].listsyms_list[-1].'\]\s.*\%(\n\%(\1\s.*\|^$\)\)*'
|
\ . g:vimwiki_syntax_variables[a:syntax].listsyms_list[-1]
|
||||||
|
\ . vimwiki#vars#get_global('listsym_rejected') . ']\]\s.*\%(\n\%(\1\s.*\|^$\)\)*'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" 0. URL : free-standing links: keep URL UR(L) strip trailing punct: URL; URL) UR(L))
|
" 0. URL : free-standing links: keep URL UR(L) strip trailing punct: URL; URL) UR(L))
|
||||||
|
@ -236,10 +236,13 @@ execute 'syntax match VimwikiListTodo /'.vimwiki#vars#get_syntaxlocal('rxListIte
|
|||||||
|
|
||||||
if vimwiki#vars#get_global('hl_cb_checked') == 1
|
if vimwiki#vars#get_global('hl_cb_checked') == 1
|
||||||
execute 'syntax match VimwikiCheckBoxDone /'.vimwiki#vars#get_syntaxlocal('rxListItemWithoutCB')
|
execute 'syntax match VimwikiCheckBoxDone /'.vimwiki#vars#get_syntaxlocal('rxListItemWithoutCB')
|
||||||
\ .'\s*\['.vimwiki#vars#get_syntaxlocal('listsyms_list')[-1]
|
\ . '\s*\[['.vimwiki#vars#get_syntaxlocal('listsyms_list')[-1]
|
||||||
\ .'\]\s.*$/ contains=VimwikiNoExistsLink,VimwikiLink,@Spell'
|
\ . vimwiki#vars#get_global('listsym_rejected')
|
||||||
|
\ . ']\]\s.*$/ contains=VimwikiNoExistsLink,VimwikiLink,@Spell'
|
||||||
elseif vimwiki#vars#get_global('hl_cb_checked') == 2
|
elseif vimwiki#vars#get_global('hl_cb_checked') == 2
|
||||||
execute 'syntax match VimwikiCheckBoxDone /'.vimwiki#vars#get_syntaxlocal('rxListItemAndChildren').'/ contains=VimwikiNoExistsLink,VimwikiLink,@Spell'
|
execute 'syntax match VimwikiCheckBoxDone /'
|
||||||
|
\ . vimwiki#vars#get_syntaxlocal('rxListItemAndChildren')
|
||||||
|
\ .'/ contains=VimwikiNoExistsLink,VimwikiLink,@Spell'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user