branch: master
commit 2a959a1d43b3f38cf4845b071679a7978e36d95a
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
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)