GNU bug report logs - #33973
Multi-line C++ raw string literal font lock is broken

Previous Next

Packages: emacs, cc-mode;

Reported by: Li Feng <li.feng <at> snap.com>

Date: Fri, 4 Jan 2019 05:53:01 UTC

Severity: minor

Tags: confirmed

Merged with 34791

Found in version 27.0.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Alan Mackenzie <acm <at> muc.de>
To: Li Feng <li.feng <at> snap.com>
Cc: 33973 <at> debbugs.gnu.org
Subject: bug#33973: Multi-line C++ raw string literal font lock is broken
Date: 7 Jan 2019 15:25:49 -0000
Hello, Li.

In article <mailman.6748.1546581187.1284.bug-gnu-emacs <at> gnu.org> you wrote:
> [-- text/plain, encoding 7bit, charset: UTF-8, 102 lines --]

> Write a multi-line raw string literal in c++-mode, and font
> lock doesn't show the correct syntax highlighting. Sample code:

> const char* s1 = R"foo(
> Hello
> World
> )foo";

> const char* s2 = R"(
> Hello
> World
> )";

Yes.  Thank you for reporting this bug.  I'm working on fixing it, and
hope to commit a patch to master sometime in the next few days.

> In GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.7.0, NS appkit-1561.60
> Version 10.13.6 (Build 17G65))
>  of 2019-01-04 built on C02WP42JHTD6
> Repository revision: fe4922cbf01fa9161ffa142fc70972098d48186f
> Repository branch: master
> Windowing system distributor 'Apple', version 10.3.1561
> System Description:  Mac OS X 10.13.6

[ .... ]

-- 
Alan Mackenzie (Nuremberg, Germany).





This bug report was last modified 3 years and 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.