[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 2a959a1d: Fix regexp
From: |
Ikumi Keita |
Subject: |
master 2a959a1d: Fix regexp |
Date: |
Fri, 10 Nov 2023 07:03:45 -0500 (EST) |
branch: master
commit 2a959a1d43b3f38cf4845b071679a7978e36d95a
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Fix regexp
* tex-fold.el (TeX-fold-expand-spec): Fix regexp to match the
form (<num>) as described in the doc string.
---
tex-fold.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tex-fold.el b/tex-fold.el
index e3857460..c6e9f1ca 100644
--- a/tex-fold.el
+++ b/tex-fold.el
@@ -749,7 +749,8 @@ Replace them with the respective macro argument."
(setq spec elt
index nil)
;; Find and expand every placeholder.
- (while (and (string-match "\\([[{<]\\)\\([1-9]\\)\\([]}>]\\)" elt
index)
+ (while (and (string-match "\\([[{<(]\\)\\([1-9]\\)\\([]}>)]\\)"
+ elt index)
;; Does the closing delim match the opening one?
(string-equal
(match-string 3 elt)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 2a959a1d: Fix regexp,
Ikumi Keita <=