Disable spellchecking inside some LaTeX macros

This commit is contained in:
Alexander Gehrke 2019-06-03 17:42:03 +02:00
parent 3a929909c5
commit 540ea1c2a0

9
after/syntax/tex.vim Normal file
View file

@ -0,0 +1,9 @@
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