aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2022-07-04 15:54:14 +0200
committerMattias EngdegÄrd2022-07-04 15:55:35 +0200
commitcfc754a67c049e9297c19eb5400f8ea38159a0d9 (patch)
treee6f8aafef57b6882e60eb746e7ce5a11da4b4e6a
parent0e5d790c6b8e38bbdffa146085771b7d10e6fc15 (diff)
downloademacs-cfc754a67c049e9297c19eb5400f8ea38159a0d9.tar.gz
emacs-cfc754a67c049e9297c19eb5400f8ea38159a0d9.zip
; remove regexp ambiguity
-rw-r--r--lisp/emacs-lisp/lisp-mode.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 888e3397199..65f76a4fa35 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -478,10 +478,10 @@ This will generate compile-time constants from BINDINGS."
478 ;; Words inside \\[], \\<>, \\{} or \\`' tend to be for 478 ;; Words inside \\[], \\<>, \\{} or \\`' tend to be for
479 ;; `substitute-command-keys'. 479 ;; `substitute-command-keys'.
480 (,(rx "\\\\" (or (seq "[" (group-n 1 lisp-mode-symbol) "]") 480 (,(rx "\\\\" (or (seq "[" (group-n 1 lisp-mode-symbol) "]")
481 (seq "`" (group-n 1 (+ lisp-mode-symbol 481 (seq "`" (group-n 1
482 ;; allow multiple words, e.g. "C-x a" 482 ;; allow multiple words, e.g. "C-x a"
483 (? " "))) 483 lisp-mode-symbol (* " " lisp-mode-symbol))
484 "'"))) 484 "'")))
485 (1 font-lock-constant-face prepend)) 485 (1 font-lock-constant-face prepend))
486 (,(rx "\\\\" (or (seq "<" (group-n 1 lisp-mode-symbol) ">") 486 (,(rx "\\\\" (or (seq "<" (group-n 1 lisp-mode-symbol) ">")
487 (seq "{" (group-n 1 lisp-mode-symbol) "}"))) 487 (seq "{" (group-n 1 lisp-mode-symbol) "}")))