Skip to content

Commit

Permalink
Support keyval style beamer frame labels
Browse files Browse the repository at this point in the history
* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Support keyval
style beamer frame labels.
  • Loading branch information
tsdh committed Jan 10, 2021
1 parent 9b57ecf commit 7a89b4b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lisp/textmodes/reftex-vars.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:]]*"
Expand All @@ -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)
Expand Down

0 comments on commit 7a89b4b

Please sign in to comment.