Added support for listings package

This commit is contained in:
Karl Yngve Lervåg 2014-02-09 15:44:55 +01:00
parent 051a1c2085
commit e82d3d2861

View File

@ -26,3 +26,14 @@ syn region texRefRangeEnd
\ contained contains=texRefZone
hi link texRefRangeStart texRefZone
hi link texRefRangeEnd texRefZone
" Support for listings package
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