auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

main bbe3c8fe 019/257: Highlighting fix for bib-cite.el


From: Tassilo Horn
Subject: main bbe3c8fe 019/257: Highlighting fix for bib-cite.el
Date: Fri, 19 Apr 2024 15:36:15 -0400 (EDT)

branch: main
commit bbe3c8fe10b7f95ff484a31a6e9144d0ba17c686
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]