CC Mode: Fix wrong fontification of enum foo bar; in Objective C Mode

This fixes bug #58795 and bug #58796.

* lisp/progmodes/cc-langs.el (c-type-prefix-kwds): Add the missing entry for
objc.
This commit is contained in:
Alan Mackenzie 2022-10-28 12:13:08 +00:00
parent 879c65a5fc
commit f9ed80f9d0

View file

@ -2319,7 +2319,7 @@ Note that an alternative if the second part doesn't hold is
`c-type-list-kwds'. Keywords on this list are typically also present
on one of the `*-decl-kwds' lists."
t nil
c '("struct" "union" "enum")
(c objc) '("struct" "union" "enum")
c++ (append '("class" "typename")
(c-lang-const c-type-prefix-kwds c)))