diff --git a/autoload/vimtex/syntax/p/biblatex.vim b/autoload/vimtex/syntax/p/biblatex.vim index e3a5455552..1315545e42 100644 --- a/autoload/vimtex/syntax/p/biblatex.vim +++ b/autoload/vimtex/syntax/p/biblatex.vim @@ -8,6 +8,7 @@ function! vimtex#syntax#p#biblatex#load(cfg) abort " {{{1 syntax match texCmdBib nextgroup=texFilesArg "\\addbibresource\>" syntax match texCmdRef nextgroup=texRefOpt,texRefArg skipwhite skipnl "\\bibentry\>" + syntax match texCmdRef nextgroup=texRefOpt,texRefArg skipwhite skipnl "\\Cite\>\*\?" syntax match texCmdRef nextgroup=texRefOpt,texRefArg skipwhite skipnl "\\cite[pt]\?\>\*\?" syntax match texCmdRef nextgroup=texRefOpt,texRefArg skipwhite skipnl "\\citeal[tp]\>\*\?" syntax match texCmdRef nextgroup=texRefOpt,texRefArg skipwhite skipnl "\\cite\%(num\|text\|url\)\>" @@ -48,6 +49,7 @@ function! vimtex#syntax#p#biblatex#load(cfg) abort " {{{1 \ '[Ppf]?[Nn]otecite', \ '[pPfFsStTaA]?[Vv]olcite[s]?', \ '[Ss]upercite[s]?', + \ 'Cite', \ 'cite%(num|text|url|field|list|name)', \ 'citeal[tp]', \ 'foot%(full)?cite%(text)?', diff --git a/test/test-syntax/test-biblatex.tex b/test/test-syntax/test-biblatex.tex index 1a08d04ae0..b9e78410ca 100644 --- a/test/test-syntax/test-biblatex.tex +++ b/test/test-syntax/test-biblatex.tex @@ -2,6 +2,7 @@ \usepackage{biblatex} \usepackage{csquotes} +% \addbibresource{biblatex-examples.bib} \addbibresource{../common/local1.bib} \begin{document} @@ -17,7 +18,8 @@ \smartcite{} \Textcite[e.g.][]{} -\cite{} +\cite{fooBar} +\Cite{fooBar} \citealp*{} \citealp{} \citealt*{} @@ -32,4 +34,7 @@ \citeyear{} \citeyearpar{} +\volcite{1}[23]{worman} +\volcite[23]{worman} + \end{document}