Fix is_math() syntax check (fixes #281)

This commit is contained in:
Karl Yngve Lervåg 2015-11-18 08:32:05 +01:00
parent c365183952
commit eda71910be

View File

@ -95,7 +95,7 @@ endfunction
"
function! s:is_math() " {{{1
return match(map(synstack(line('.'), max([col('.') - 1, 1])),
\ 'synIDattr(v:val, ''name'')'), '^texMathZone[A-Z]$') >= 0
\ 'synIDattr(v:val, ''name'')'), '^texMathZone[A-Z]S\?$') >= 0
endfunction
" }}}1