# HG changeset patch # User Eli Zaretskii # Date 1141388297 0 # Node ID 322d4f69063be47ad46a7fff9ab0e41cd7408105 # Parent f4eced40513b9e3eabc8992025242cb6b875978d (lisp-font-lock-keywords-2): Quote "]"s in regexps when they have no special meaning. diff -r f4eced40513b -r 322d4f69063b lisp/font-lock.el --- 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.