From b50f58d55f83b086f2a98ccc3a733f5254c96222 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 3 Mar 2006 12:18:17 +0000 Subject: [PATCH] (lisp-font-lock-keywords-2): Quote "]"s in regexps when they have no special meaning. --- lisp/font-lock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 53f2df11d1d..47d2267dbea 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -2120,7 +2120,7 @@ other modes in which C preprocessor directives are used. e.g. `asm-mode' and ;; Erroneous structures. ("(\\(abort\\|assert\\|warn\\|check-type\\|cerror\\|error\\|signal\\)\\>" 1 font-lock-warning-face) ;; Words inside \\[] tend to be for `substitute-command-keys'. - ("\\\\\\\\\\[\\(\\sw+\\)]" 1 font-lock-constant-face prepend) + ("\\\\\\\\\\[\\(\\sw+\\)\\]" 1 font-lock-constant-face prepend) ;; Words inside `' tend to be symbol names. ("`\\(\\sw\\sw+\\)'" 1 font-lock-constant-face prepend) ;; Constant values. -- 2.39.2