Subject: Re: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode

From: Andreas Schwab <[email-masked]>
Date: Sun, 07 Aug 2016 11:11:12 +0200

Clément Pit--Claudel <[email-masked]> writes:

> In Emacs Lisp mode, the last two backslashes in the string "\\[\\]" are highlighted with (font-lock-constant-face font-lock-string-face). Is this expected?

         ;; Words inside \\[] tend to be for `substitute-command-keys'.
         (,(concat "\\\\\\\\\\[\\(" lisp-mode-symbol-regexp "\\)\\]")

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."