summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/km-tex.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/km-tex.el b/lisp/km-tex.el
index f3f0727..aef7e8e 100644
--- a/lisp/km-tex.el
+++ b/lisp/km-tex.el
@@ -27,7 +27,8 @@
;; See `LaTeX-imenu-create-index-function'.
(TeX-update-style)
(let ((sec-re (LaTeX-outline-regexp))
- (title-re "\\*\\{0,1\\}{\\([^}]*\\)}")
+ (title-re (rx (zero-or-one "*")
+ "{" (group (zero-or-more (not (any "}"))))))
entries)
(goto-char (point-min))
(while (re-search-forward sec-re nil t)