emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master cfc754a67c: ; remove regexp ambiguity


From: Mattias Engdegård
Subject: master cfc754a67c: ; remove regexp ambiguity
Date: Mon, 4 Jul 2022 09:56:01 -0400 (EDT)

branch: master
commit cfc754a67c049e9297c19eb5400f8ea38159a0d9
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    ; remove regexp ambiguity
---
 lisp/emacs-lisp/lisp-mode.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 888e339719..65f76a4fa3 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."
          ;; 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) "}")))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]