diff options
author | katherine <ageha@airen-no-jikken.icu> | 2021-03-20 15:03:03 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2021-03-20 15:03:03 -0700 |
commit | 25f82811ae968caf687355996a5025576dc866fc (patch) | |
tree | 974bf77cc7121bd600b7470dcace4a96c67823bf /.vim/after/syntax | |
parent | 46e140cae82b91942e887e84c86b1b67e46c5e1b (diff) | |
download | dotfiles-25f82811ae968caf687355996a5025576dc866fc.tar.gz |
prevent listings from killing syntax highlighting
Diffstat (limited to '.vim/after/syntax')
-rw-r--r-- | .vim/after/syntax/tex/listings.vim | 4 |
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 |