summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorNils Ackermann <nils@ackermath.info>2015-06-16 09:24:47 +0200
committerTassilo Horn <tsdh@gnu.org>2015-06-16 09:24:47 +0200
commit32a488344057f210b51f4618feb3a85799eef0c5 (patch)
tree7bfc22bff25c3b7618dfdcc777a9e8108f239e32 /lisp/textmodes
parent5b0acc59e8ff849a62104b55dbbbe09903decb84 (diff)
downloademacs-32a488344057f210b51f4618feb3a85799eef0c5.tar.gz
Improve reftex-label-regexps default value
* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Make keyvals label regexp more strict to better cope with unbalanced brackets common in math documents.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/reftex-vars.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 7f050e9fd90..a8f5fcefe30 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -876,7 +876,7 @@ DOWNCASE t: Downcase words before using them."
"\\\\label{\\(?1:[^}]*\\)}"
;; keyvals [..., label = {foo}, ...] forms used by ctable,
;; listings, minted, ...
- "\\[[^]]*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?")
+ "\\[[^[]]*\\<label[[:space:]]*=[[:space:]]*{?\\(?1:[^],}]+\\)}?")
"List of regexps matching \\label definitions.
The default value matches usual \\label{...} definitions and
keyval style [..., label = {...}, ...] label definitions. It is
@@ -886,7 +886,7 @@ have to define it using \\(?1:...\\) when adding new regexps.
When changed from Lisp, make sure to call
`reftex-compile-variables' afterwards to make the change
effective."
- :version "24.4"
+ :version "25.1"
:set (lambda (symbol value)
(set symbol value)
(when (fboundp 'reftex-compile-variables)