Added support for listings package
This commit is contained in:
parent
051a1c2085
commit
e82d3d2861
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user