summaryrefslogtreecommitdiff
path: root/lisp/textmodes/reftex.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/textmodes/reftex.el')
-rw-r--r--lisp/textmodes/reftex.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 18b35981f82..9754d2b20ff 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -352,7 +352,7 @@ If the symbols for the current master file do not exist, they are created."
((save-excursion
(goto-char (point-min))
(re-search-forward
- "^[[:space:]]*\\\\documentclass\\[\\([[:word:].]+\\)\\]{subfiles}"
+ "^[[:space:]]*\\\\documentclass\\[\\([^]]+\\)\\]{subfiles}"
nil t))
(match-string-no-properties 1))
;; AUCTeX is loaded. Use its mechanism.