From 4f639cebeee65224fc671937b60f89e2203687fb Mon Sep 17 00:00:00 2001 From: Ivan Tishchenko Date: Mon, 5 Jan 2015 01:44:24 +0300 Subject: [PATCH] Syntax definitions --- syntax/vimwiki.vim | 5 +++++ syntax/vimwiki_default.vim | 1 + 2 files changed, 6 insertions(+) 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:]]\+:\)\+'