bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62339: cc-mode fontifies variables incorrectly when const follows ty


From: Alan Mackenzie
Subject: bug#62339: cc-mode fontifies variables incorrectly when const follows type
Date: Wed, 5 Apr 2023 15:53:47 +0000

Hello, Daniel.

On Thu, Mar 23, 2023 at 14:40:23 +0000, Alan Mackenzie wrote:
> On Wed, Mar 22, 2023 at 18:17:05 -0400, Daniel Colascione wrote:

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

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

> > >> Thanks.  What I see with Emacs built from master is that
> > >> test_directory in the above example gets font-lock-type-face in
> > >> c++-mode (but not in c-mode).  With Emacs built from emacs-29, both
> > >> modes produce correct fontification.

> > >> Alan, can you please look into this?

[ .... ]

> It turned out that the bug was caused by a single missing line of code, a 
> (c-forward-syntactic-ws) in c-forward-type, so the fix wasn't too
> difficult.  I've taken the opportunity also to fix some minor other
> innaccuracies in c-forward-type.

> Please try the following patch, and either confirm to me that it appears
> to fix the bug, or say what's still wrong.  Thanks!

Ping?

-- 
Alan Mackenzie (Nuremberg, Germany).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]