From 25f82811ae968caf687355996a5025576dc866fc Mon Sep 17 00:00:00 2001 From: katherine Date: Sat, 20 Mar 2021 15:03:03 -0700 Subject: prevent listings from killing syntax highlighting --- .vim/after/syntax/tex/listings.vim | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .vim/after/syntax/tex/listings.vim (limited to '.vim/after/syntax/tex/listings.vim') 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 -- cgit v1.2.3