Treat math blocks in the same manner as code blocks
This commit is contained in:
parent
4bc6ff4547
commit
141d1aa081
@ -97,7 +97,10 @@ endfunction
|
|||||||
|
|
||||||
function! vimwiki#u#is_codeblock(lnum)
|
function! vimwiki#u#is_codeblock(lnum)
|
||||||
let syn_g = synIDattr(synID(a:lnum,1,1),'name')
|
let syn_g = synIDattr(synID(a:lnum,1,1),'name')
|
||||||
if syn_g =~# 'textSnip.*' || syn_g =~# 'VimwikiPre.*' || syn_g =~# '.*Comment'
|
if syn_g =~# 'textSnip.*'
|
||||||
|
\ || syn_g =~# 'VimwikiPre.*'
|
||||||
|
\ || syn_g =~# 'VimwikiMath.*'
|
||||||
|
\ || syn_g =~# '.*Comment'
|
||||||
return 1
|
return 1
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user