Disable spellchecking inside some LaTeX macros
This commit is contained in:
parent
3a929909c5
commit
540ea1c2a0
9
after/syntax/tex.vim
Normal file
9
after/syntax/tex.vim
Normal 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
|
Loading…
Reference in a new issue