bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#35132: 25.2; Single-quote in numbers not handled properly by font-lo


From: Basil L. Contovounesios
Subject: bug#35132: 25.2; Single-quote in numbers not handled properly by font-lock
Date: Thu, 04 Apr 2019 03:09:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

"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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]