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?