GNU bug report logs - #62339
cc-mode fontifies variables incorrectly when const follows type

Previous Next

Package: emacs;

Reported by: Daniel Colascione <dancol <at> dancol.org>

Date: Tue, 21 Mar 2023 15:17:02 UTC

Severity: normal

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Colascione <dancol <at> dancol.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 62339 <at> debbugs.gnu.org
Subject: bug#62339: cc-mode fontifies variables incorrectly when const follows type
Date: Wed, 22 Mar 2023 10:19:55 -0400
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Daniel Colascione <dancol <at> dancol.org>
>> Date: Tue, 21 Mar 2023 11:14:13 -0400
>> 
>> 
>> cc-mode incorrectly fontifies my_variable as a type in "MyType const
>> my_variable"
>
> I cannot reproduce this, at least not in Emacs 29 and 30.  In which
> version of Emacs do you see this?  If Emacs 29 or later, can you show
> a minimal example source file where it happens?
>
> Thanks.

This problem reproduces for me on latest master with emacs -Q:

```
TEST(Foo, Bar) {
  NamedTemporaryDirectory const test_directory;
}
```




This bug report was last modified 2 years and 105 days ago.

Previous Next


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