GNU bug report logs - #71070
30.0.50; c++-ts-mode namespace wrong fontification.

Previous Next

Package: emacs;

Reported by: Ergus <spacibba <at> aol.com>

Date: Sun, 19 May 2024 18:15:02 UTC

Severity: normal

Found in version 30.0.50

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dmitry <at> gutov.dev>
To: Yuan Fu <casouri <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Ergus <spacibba <at> aol.com>, 71070 <at> debbugs.gnu.org
Subject: bug#71070: 30.0.50; c++-ts-mode namespace wrong fontification.
Date: Thu, 6 Jun 2024 23:16:18 +0300
On 06/06/2024 08:28, Yuan Fu wrote:
>> Seems like it (although some themes might use some additional colors to differentiate between these two, the default theme does not).
>>
>> Perhaps it is done so that the expression foo::class_name reads naturally (in one color).
> Am I missing something? I got the exact opposite conclusion from the screenshot: it seems the effect is that namespaces are colored differently from class names:

The class names I meant are A and B on my screenshot.

Maybe tree-sitter doesn't see them as class names specifically, just 
non-primitive identifiers in type position.




This bug report was last modified 1 year and 24 days ago.

Previous Next


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