2015-07-18 23:05:45 +02:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
|
|
|
|
|
2013-10-17 15:54:18 +02:00
|
|
|
" adds support for cleverref package
|
|
|
|
" \Cref, \cref, \cpageref, \labelcref, \labelcpageref
|
|
|
|
syn region texRefZone matchgroup=texStatement start="\\Cref{" end="}\|%stopzone\>" contains=@texRefGroup
|
|
|
|
syn region texRefZone matchgroup=texStatement start="\\\(label\|\)c\(page\|\)ref{" end="}\|%stopzone\>" contains=@texRefGroup
|
2014-03-01 00:15:51 +01:00
|
|
|
|
|
|
|
" adds support for listings package
|
|
|
|
syn region texZone start="\\begin{lstlisting}" end="\\end{lstlisting}\|%stopzone\>"
|
2014-06-08 13:18:33 +02:00
|
|
|
syn match texInputFile "\\lstinputlisting\s*\(\[.*\]\)\={.\{-}}" contains=texStatement,texInputCurlies,texInputFileOpt
|
|
|
|
syn match texZone "\\lstinline\s*\(\[.*\]\)\={.\{-}}"
|
2015-07-18 23:05:45 +02:00
|
|
|
|
|
|
|
endif
|