From: Alan Mackenzie Date: Fri, 28 Oct 2022 12:13:08 +0000 (+0000) Subject: CC Mode: Fix wrong fontification of enum foo bar; in Objective C Mode X-Git-Tag: emacs-29.0.90~1616^2~423 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f9ed80f9d0ac1cb157e4c0604cc39fd07e7f0842;p=emacs.git 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. --- diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 6ccd6c30df9..fc3977967b5 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el @@ -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)))