[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#39578: 27.0.50; [rainbow-mode] #define is colored in c++-mode
From: |
Julien Danjou |
Subject: |
bug#39578: 27.0.50; [rainbow-mode] #define is colored in c++-mode |
Date: |
Fri, 30 Oct 2020 16:53:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) |
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 */