[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 01/02: Highlighting fix for bib-cite.el
From: |
Tassilo Horn |
Subject: |
[elpa] 01/02: Highlighting fix for bib-cite.el |
Date: |
Tue, 22 Jul 2014 18:01:04 +0000 |
tsdh pushed a commit to branch externals/auctex
in repository elpa.
commit bbe3c8fe10b7f95ff484a31a6e9144d0ba17c686
Author: Tassilo Horn <address@hidden>
Date: Tue Jul 22 18:57:54 2014 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bib-cite.el b/bib-cite.el
index afd7aa2..0f94332 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))