nvim/after/syntax/tex.vim
2019-06-03 17:42:03 +02:00

10 lines
337 B
VimL

let s:texNoSpell=[
\['texTypeStyle', 'texttt'],
\['texStatement', 'scala'],
\['texStatement', 'java'],
\]
for nospell in s:texNoSpell
exe "syntax match ".nospell[0]." '\\\\".nospell[1]."\\>' nextgroup=texCustomNoSpell"
endfor
syntax region texCustomNoSpell matchgroup=Delimiter start='{' end='}' contained contains=@NoSpell