2013-10-16 04:17:08 -04:00
|
|
|
" Add support for cleverref package
|
|
|
|
" \Cref, \cref, \cpageref, \labelcref, \labelcpageref
|
2013-10-05 07:53:42 -04:00
|
|
|
syn region texRefZone matchgroup=texStatement
|
2013-10-16 04:17:08 -04:00
|
|
|
\ start="\\\(\(label\)\?c\(page\)\?\|C\)ref{"
|
2013-10-05 07:53:42 -04:00
|
|
|
\ end="}\|%stopzone\>"
|
|
|
|
\ contains=@texRefGroup
|
2013-10-16 04:17:08 -04:00
|
|
|
|
|
|
|
" \crefrange, \cpagerefrange (these commands expect two arguments)
|
|
|
|
syn match texStatement
|
|
|
|
\ '\\c\(page\)\?refrange\>'
|
|
|
|
\ nextgroup=texRefRangeStart
|
|
|
|
syn region texRefRangeStart matchgroup=texStatement
|
|
|
|
\ start='{' end='}'
|
|
|
|
\ contains=texRefZone
|
|
|
|
\ nextgroup=texRefRangeEnd
|
|
|
|
syn region texRefRangeEnd matchgroup=texStatement
|
|
|
|
\ start='{' end='}'
|
|
|
|
\ contains=texRefZone
|
|
|
|
hi link texRefRangeStart texRefZone
|
|
|
|
hi link texRefRangeEnd texRefZone
|