aboutsummaryrefslogtreecommitdiffstats
path: root/.vim/after/syntax/tex/listings.vim
blob: d81374bd5e7cbe12d75d39a0d1295fac46cf9bbd (plain)
1
2
3
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