]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Don't fontify as types variables with the same names as struct tags
authorAlan Mackenzie <acm@muc.de>
Mon, 17 Oct 2022 20:33:26 +0000 (20:33 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 17 Oct 2022 20:33:26 +0000 (20:33 +0000)
commitc2b79d9148f21c3717f1eaa2d37b837b0922b94c
tree501dc8809f43f63fc40f9337e345262c9d67dcb9
parent1e9341672d53fa9b297858dc47f7318974abc80e
CC Mode: Don't fontify as types variables with the same names as struct tags

This fixes bug #58534.

* lisp/progmodes/cc-engine.el (c-forward-type): Only regard "struct" keywords
which create self contained types (e.g. C++'s "typename") as creating found
types.

* lisp/progmodes/cc-langs.el (c-self-contained-typename-kwds
(c-self-contained-typename-key): New language consts and variable.
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-langs.el