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


Message #21 received at 33973 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: Li Feng <li.feng <at> snap.com>, 33973 <at> debbugs.gnu.org
Subject: Re: bug#33973: Multi-line C++ raw string literal font lock is broken
Date: Wed, 01 Sep 2021 11:15:01 +0200
[Message part 1 (text/plain, inline)]
Alan Mackenzie <acm <at> muc.de> writes:

>> 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.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Testing this in Emacs 28, I get:

[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
Which...  I think is correct?  So I guess this has been fixed in the
years since this was reported, and I'm closing this bug report.  (If
there's still bugs in this area, please respond to the debbugs address
and we'll reopen.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

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.