From: Eli Zaretskii Date: Fri, 3 Mar 2006 12:18:17 +0000 (+0000) Subject: (lisp-font-lock-keywords-2): Quote "]"s in regexps when they have no X-Git-Tag: emacs-pretest-22.0.90~3799 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b50f58d55f83b086f2a98ccc3a733f5254c96222;p=emacs.git (lisp-font-lock-keywords-2): Quote "]"s in regexps when they have no special meaning. --- 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.