From 6c159818d17426f74c0af68028b23b631cab93a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 29 Dec 2016 19:25:11 +0100 Subject: [PATCH] Cf. #614: Support for bibentry as cite syntax --- after/syntax/tex.vim | 3 ++- test/features/syntax/test-syntax.tex | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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}