diff --git a/syntax/vimwiki.vim b/syntax/vimwiki.vim index fb52ff6..00b54d2 100644 --- a/syntax/vimwiki.vim +++ b/syntax/vimwiki.vim @@ -485,6 +485,10 @@ if g:vimwiki_valid_html_tags != '' execute 'syntax match VimwikiComment /'.g:vimwiki_rxComment.'/ contains=@Spell' endif + +" tags +execute 'syntax match VimwikiTag /'.g:vimwiki_rxTags.'/' + " }}} " header groups highlighting "{{{ @@ -550,6 +554,7 @@ hi def link VimwikiListTodo VimwikiList hi def link VimwikiCheckBoxDone Comment hi def link VimwikiEmoticons Character hi def link VimwikiHR Identifier +hi def link VimwikiTag Keyword hi def link VimwikiDelText Constant hi def link VimwikiDelTextT VimwikiDelText diff --git a/syntax/vimwiki_default.vim b/syntax/vimwiki_default.vim index 0df4fb2..e0c73a5 100644 --- a/syntax/vimwiki_default.vim +++ b/syntax/vimwiki_default.vim @@ -95,3 +95,4 @@ let g:vimwiki_rxMathStart = '{{\$' let g:vimwiki_rxMathEnd = '}}\$' let g:vimwiki_rxComment = '^\s*%%.*$' +let g:vimwiki_rxTags = ':\([^:[:space:]]\+:\)\+'