Subject: Re: bug#39578: 27.0.50; [rainbow-mode] #define is colored in c++-mode

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 30 Oct 2020 13:00:26 +0100

Julien Danjou <[email-masked]> writes:

> It's not a bug per say since it matches the regexp.
> We just need to add even more code to avoid matching languages'
> keywords.

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?

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