Fixed #554: Wrong syntax highlighting of \cite[pt]
This commit is contained in:
parent
7e2793d4e3
commit
4e39b1337d
@ -65,12 +65,6 @@ highlight link texHyperref texRefZone
|
|||||||
" }}}1
|
" }}}1
|
||||||
" {{{1 Improve support for cite commands
|
" {{{1 Improve support for cite commands
|
||||||
if get(g:, 'tex_fast', 'r') =~# 'r'
|
if get(g:, 'tex_fast', 'r') =~# 'r'
|
||||||
"
|
|
||||||
" natbib
|
|
||||||
"
|
|
||||||
syntax match texStatement '\\cite\%([tp]\*\?\)\?'
|
|
||||||
\ nextgroup=texRefOption,texCite
|
|
||||||
|
|
||||||
"
|
"
|
||||||
" biblatex
|
" biblatex
|
||||||
"
|
"
|
||||||
@ -104,6 +98,15 @@ if get(g:, 'tex_fast', 'r') =~# 'r'
|
|||||||
execute 'syntax match texStatement /\\cite\%(field\|list\|name\)/'
|
execute 'syntax match texStatement /\\cite\%(field\|list\|name\)/'
|
||||||
\ 'nextgroup=texRefOptions,texCites'
|
\ 'nextgroup=texRefOptions,texCites'
|
||||||
|
|
||||||
|
"
|
||||||
|
" natbib
|
||||||
|
"
|
||||||
|
syntax match texStatement '\\cite\%([tp]\*\?\)\?'
|
||||||
|
\ nextgroup=texRefOption,texCite
|
||||||
|
|
||||||
|
"
|
||||||
|
" Common
|
||||||
|
"
|
||||||
syntax region texRefOptions contained matchgroup=Delimiter
|
syntax region texRefOptions contained matchgroup=Delimiter
|
||||||
\ start='\[' end=']'
|
\ start='\[' end=']'
|
||||||
\ contains=@texRefGroup,texRefZone
|
\ contains=@texRefGroup,texRefZone
|
||||||
|
Loading…
x
Reference in New Issue
Block a user