GNU bug report logs - #39578
27.0.50; [rainbow-mode] #define is colored in c++-mode

Previous Next

Package: emacs;

Reported by: tastytea <tastytea <at> tastytea.de>

Date: Wed, 12 Feb 2020 15:33:02 UTC

Severity: minor

Tags: confirmed

Merged with 37681

Found in version 27.0.50

Fixed in version 29.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Julien Danjou <julien <at> danjou.info>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: tastytea <tastytea <at> tastytea.de>, 39578 <at> debbugs.gnu.org
Subject: Re: bug#39578: 27.0.50; [rainbow-mode] #define is colored in c++-mode
Date: Fri, 30 Oct 2020 16:53:05 +0100
On Fri, Oct 30 2020, Lars Ingebrigtsen wrote:

> It seems like a more general problem to me.  That is, "#def" should be
> colourized, but "#defi" should not?
>
> So would checking for a word boundary after the regexp be sufficient?
> Or are there places where #000000foobar makes sense and we really want
> to colourize that #000000 bit?

It might be. It's hard to say since I don't have a good memory and there
is no unit test. :(

-- 
Julien Danjou
/* Free Software hacker
   https://julien.danjou.info */




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

Previous Next


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