branch: main commit bbe3c8fe10b7f95ff484a31a6e9144d0ba17c686 Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
Highlighting fix for bib-cite.el * bib-cite.el (bib-highlight-mouse): Change regexp to cope with multiple optional arguments of a macro. --- bib-cite.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bib-cite.el b/bib-cite.el index afd7aa2d..0f943322 100644 --- a/bib-cite.el +++ b/bib-cite.el @@ -1414,7 +1414,7 @@ See variables bib-etags-command and bib-etags-filename" (re-search-forward (concat "\\\\\\(" (substring bib-ref-regexp 2) - "\\|label\\|[A-Za-z]*cite[A-Za-z]*\\(\\[.*\\]\\)?\\){[^}]*}") + "\\|label\\|[A-Za-z]*cite[A-Za-z]*\\(\\[[^]]*\\]\\)*\\){[^}]*}") nil t) (setq s (match-beginning 0)) (setq e (match-end 0))