diff --git a/after/syntax/tex.vim b/after/syntax/tex.vim index 276aab2..973c3ae 100644 --- a/after/syntax/tex.vim +++ b/after/syntax/tex.vim @@ -66,7 +66,8 @@ highlight link texHyperref texRefZone if get(g:, 'tex_fast', 'r') =~# 'r' for s:pattern in [ - \ 'cite[pt]\*?', + \ 'bibentry', + \ 'cite[pt]?\*?', \ 'citeal[tp]\*?', \ 'cite(num|text|url)', \ '[Cc]ite%(title|author|year(par)?|date)\*?', diff --git a/test/features/syntax/test-syntax.tex b/test/features/syntax/test-syntax.tex index c684548..144365f 100644 --- a/test/features/syntax/test-syntax.tex +++ b/test/features/syntax/test-syntax.tex @@ -88,6 +88,7 @@ const double pi = 3.1415926535 \hyperref[asdasd]{asd} % Cite commands +\cite{} \citet*{} \citealt{} \citealt*{} @@ -99,6 +100,7 @@ const double pi = 3.1415926535 \citeauthor*{} \citeyear{} \citeyearpar{} +\bibentry{} \end{document}