aboutsummaryrefslogtreecommitdiffstats
path: root/.vim/after
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2021-03-20 15:03:03 -0700
committerkatherine <ageha@airen-no-jikken.icu>2021-03-20 15:03:03 -0700
commit25f82811ae968caf687355996a5025576dc866fc (patch)
tree974bf77cc7121bd600b7470dcace4a96c67823bf /.vim/after
parent46e140cae82b91942e887e84c86b1b67e46c5e1b (diff)
downloaddotfiles-25f82811ae968caf687355996a5025576dc866fc.tar.gz
prevent listings from killing syntax highlighting
Diffstat (limited to '.vim/after')
-rw-r--r--.vim/after/syntax/tex/listings.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/.vim/after/syntax/tex/listings.vim b/.vim/after/syntax/tex/listings.vim
new file mode 100644
index 0000000..d81374b
--- /dev/null
+++ b/.vim/after/syntax/tex/listings.vim
@@ -0,0 +1,4 @@
+"fix highlighting latex listings
+syn region texZone start="\\begin{lstlisting}" end="\\end{lstlisting}\|%stopzone\>"
+syn region texZone start="\\lstinputlisting" end="{\s*[a-zA-Z/.0-9_^]\+\s*}"
+syn match texInputFile "\\lstinline\s*\(\[.*\]\)\={.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt