aboutsummaryrefslogtreecommitdiffstats
path: root/.vim/after
diff options
context:
space:
mode:
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