vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 0966031234836c8807264071cccc1670d1be123d
parent 2c9df656441eed66f868483bfdba20f661f92362
Author: EinfachToll <istjanichtzufassen@googlemail.com>
Date:   Thu, 24 Nov 2016 16:46:56 +0100

Highlight math not using TeX but TeX math

Fix #236

Diffstat:
Mautoload/vimwiki/base.vim | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim @@ -1079,6 +1079,14 @@ function! vimwiki#base#nested_syntax(filetype, start, end, textSnipHl) abort "{{ else unlet b:current_syntax endif + + " Fix issue #236: tell Vimwiki to think in maths when encountering maths + " blocks like {{$ }}$. Here, we don't want the tex highlight group, but the + " group for tex math. + if a:textSnipHl ==# 'VimwikiMath' + let group='texMathZoneGroup' + endif + execute 'syntax region textSnip'.ft. \ ' matchgroup='.a:textSnipHl. \ ' start="'.a:start.'" end="'.a:end.'"'.