diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim new file mode 100644 index 0000000..9109f89 --- /dev/null +++ b/after/syntax/tex.vim @@ -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