unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: 24173@debbugs.gnu.org
Cc: Andreas Schwab <schwab@linux-m68k.org>
Subject: bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode
Date: Sun, 7 Aug 2016 05:27:06 -0400	[thread overview]
Message-ID: <133f1f27-e7c7-3a59-ad88-414617ba38a4@gmail.com> (raw)
In-Reply-To: <m2vazdgczz.fsf@linux-m68k.org>


[-- Attachment #1.1: Type: text/plain, Size: 569 bytes --]

On 2016-08-07 05:11, Andreas Schwab wrote:
> Clément Pit--Claudel <clement.pitclaudel@live.com> 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.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-08-07  9:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-07  0:51 bug#24173: 25.1.50; Surprising highlighting of "\[\]" in emacs-lisp-mode Clément Pit--Claudel
2016-08-07  1:19 ` Drew Adams
2016-08-07  1:24   ` Clément Pit--Claudel
2016-08-07  9:11 ` Andreas Schwab
2016-08-07  9:27   ` Clément Pit--Claudel [this message]
2016-08-07 14:08     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=133f1f27-e7c7-3a59-ad88-414617ba38a4@gmail.com \
    --to=clement.pit@gmail.com \
    --cc=24173@debbugs.gnu.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).