bug#59216: CC Mode 5.35.2 (C++//l); Incorrect fontification of "static key_map *key_map"

Alan Mackenzie <[email protected]> Sat, 12 Nov 2022 15:37:39 +0000
Newsgroups gmane.emacs.cc-mode.general
Message-ID <Y2+9w8BMjK7dYfCY@ACM>
Hello, Po.

On Sat, Nov 12, 2022 at 21:09:31 +0800, Po Lu via CC-Mode-help wrote:
> Package: cc-mode

> Go to src/haiku_support.cc.  Around line 171, there will be:

> /* The keymap, or NULL if it has not been initialized.  */
> static key_map *key_map;

> the variable name will be fontified as a type!

Er, that's the variable name the same as the type name.  Is that valid
C++?  I always thought that types and variables shared a name space.

What am I missing, here?

> Emacs  : GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu)
>  of 2022-11-12
> Package: CC Mode 5.35.2 (C++//l)
> Buffer Style: gnu
> c-emacs-features: (pps-extended-state col-0-paren posix-char-classes gen-string-delim gen-comment-delim syntax-properties category-properties 1-bit)

[ .... ]

-- 
Alan Mackenzie (Nuremberg, Germany).