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

From: Clément Pit--Claudel <[email-masked]>
Date: Sun, 7 Aug 2016 05:27:06 -0400

On 2016-08-07 05:11, Andreas Schwab wrote:
> 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 "\\)\\]")

Thanks Andreas!

Should this regexp be conditional on being in a docstring? Otherwise please feel free to close as notabug :)

Clément.