]> git.eshelyaron.com Git - emacs.git/commitdiff
Support keyval style beamer frame labels
authorTassilo Horn <tsdh@gnu.org>
Sun, 10 Jan 2021 08:40:07 +0000 (09:40 +0100)
committerTassilo Horn <tsdh@gnu.org>
Sun, 10 Jan 2021 08:40:07 +0000 (09:40 +0100)
* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Support keyval
style beamer frame labels.

lisp/textmodes/reftex-vars.el

index 073059d52e8f1476fe645fa9efbfa0550d2f0b1b..d4c1b87262e0ee3606bf28298c8879283bef0a13 100644 (file)
@@ -906,7 +906,8 @@ DOWNCASE    t:   Downcase words before using them."
         ;; begin, optional spaces and opening brace
         "begin[[:space:]]*{"
         ;; Build a regexp for env names
-        (regexp-opt '("lstlisting" "dmath" "dseries" "dgroup" "darray"))
+        (regexp-opt '("lstlisting" "dmath" "dseries" "dgroup"
+                      "darray" "frame"))
         ;; closing brace, optional spaces
         "}[[:space:]]*"
         ;; Now for macros
@@ -919,9 +920,9 @@ DOWNCASE    t:   Downcase words before using them."
         "\\[[^][]*"
         ;; Allow nested levels of chars enclosed in braces
         "\\(?:{[^}{]*"
-          "\\(?:{[^}{]*"
-            "\\(?:{[^}{]*}[^}{]*\\)*"
-          "}[^}{]*\\)*"
+        "\\(?:{[^}{]*"
+        "\\(?:{[^}{]*}[^}{]*\\)*"
+        "}[^}{]*\\)*"
         "}[^][]*\\)*"
         ;; Match the label key
         "\\<label[[:space:]]*=[[:space:]]*"
@@ -944,7 +945,7 @@ you 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 "27.1"
+    :version "28.1"
     :set (lambda (symbol value)
           (set symbol value)
           (when (fboundp 'reftex-compile-variables)