]> git.eshelyaron.com Git - emacs.git/commitdiff
; remove regexp ambiguity
authorMattias Engdegård <mattiase@acm.org>
Mon, 4 Jul 2022 13:54:14 +0000 (15:54 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 4 Jul 2022 13:55:35 +0000 (15:55 +0200)
lisp/emacs-lisp/lisp-mode.el

index 888e3397199b8d1330cd037138aa959b77dccd0b..65f76a4fa355dbdaef082a16194a2b2c2210b904 100644 (file)
@@ -478,10 +478,10 @@ This will generate compile-time constants from BINDINGS."
          ;; Words inside \\[], \\<>, \\{} or \\`' tend to be for
          ;; `substitute-command-keys'.
          (,(rx "\\\\" (or (seq "[" (group-n 1 lisp-mode-symbol) "]")
-                          (seq "`" (group-n 1 (+ lisp-mode-symbol
-                                                 ;; allow multiple words, e.g. "C-x a"
-                                                 (? " ")))
-                           "'")))
+                          (seq "`" (group-n 1
+                                     ;; allow multiple words, e.g. "C-x a"
+                                     lisp-mode-symbol (* " " lisp-mode-symbol))
+                               "'")))
           (1 font-lock-constant-face prepend))
          (,(rx "\\\\" (or (seq "<" (group-n 1 lisp-mode-symbol) ">")
                           (seq "{" (group-n 1 lisp-mode-symbol) "}")))