changeset 69264:322d4f69063b

(lisp-font-lock-keywords-2): Quote "]"s in regexps when they have no special meaning.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 03 Mar 2006 12:18:17 +0000
parents f4eced40513b
children 268da31ddfc5
files lisp/font-lock.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/font-lock.el	Fri Mar 03 12:12:06 2006 +0000
+++ b/lisp/font-lock.el	Fri Mar 03 12:18:17 2006 +0000
@@ -2120,7 +2120,7 @@
        ;; 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.