]> git.eshelyaron.com Git - emacs.git/commitdiff
(lisp-font-lock-keywords-2): Quote "]"s in regexps when they have no
authorEli Zaretskii <eliz@gnu.org>
Fri, 3 Mar 2006 12:18:17 +0000 (12:18 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 3 Mar 2006 12:18:17 +0000 (12:18 +0000)
special meaning.

lisp/font-lock.el

index 53f2df11d1d0056499fee2f44d100b1b195e1ba6..47d2267dbea624d55bcb9b70f6fa6ca6d3fd571a 100644 (file)
@@ -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.