From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: "Aidan Gauland" <aidalgol@fastmail.net>
Cc: 35132@debbugs.gnu.org
Subject: bug#35132: 25.2; Single-quote in numbers not handled properly by font-lock
Date: Thu, 04 Apr 2019 03:09:27 +0100 [thread overview]
Message-ID: <87tvfebjxk.fsf@tcd.ie> (raw)
In-Reply-To: <deceb219-1a1a-4e9e-bf26-43c3fef6931d@www.fastmail.com> (Aidan Gauland's message of "Wed, 03 Apr 2019 18:18:54 -0400")
"Aidan Gauland" <aidalgol@fastmail.net> writes:
> As of C++14, the single-quote character can be used as a digit separator (see
> <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3781.pdf>). This case
> is not handled by c++-mode font-lock, which can mess up parsing of the entire
> buffer in code using digit separators. For example, in the attached example
> program, the first three zeroes on line 5 have the string face, and the text
> from the next digit separator to the end of the buffer also has the string face,
> overriding all other syntax highlighting for the rest of the code.
Support for this was added in Emacs 26.1[1], which was released 28th May
2018.
[1]: Make C++ digit separators work. Amend the handling of single quotes generally
2017-07-01 15:43:07 +0000
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=59d07875df9d44568d93a7517853e6a5ccaf1e5b
--
Basil
prev parent reply other threads:[~2019-04-04 2:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-03 22:18 bug#35132: 25.2; Single-quote in numbers not handled properly by font-lock Aidan Gauland
2019-04-04 2:09 ` Basil L. Contovounesios [this message]
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=87tvfebjxk.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=35132@debbugs.gnu.org \
--cc=aidalgol@fastmail.net \
/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).