diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim index 6415522..a3f126c 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -65,12 +65,6 @@ highlight link texHyperref texRefZone " }}}1 " {{{1 Improve support for cite commands if get(g:, 'tex_fast', 'r') =~# 'r' - " - " natbib - " - syntax match texStatement '\\cite\%([tp]\*\?\)\?' - \ nextgroup=texRefOption,texCite - " " biblatex " @@ -104,6 +98,15 @@ if get(g:, 'tex_fast', 'r') =~# 'r' execute 'syntax match texStatement /\\cite\%(field\|list\|name\)/' \ 'nextgroup=texRefOptions,texCites' + " + " natbib + " + syntax match texStatement '\\cite\%([tp]\*\?\)\?' + \ nextgroup=texRefOption,texCite + + " + " Common + " syntax region texRefOptions contained matchgroup=Delimiter \ start='\[' end=']' \ contains=@texRefGroup,texRefZone