From f9ed80f9d0ac1cb157e4c0604cc39fd07e7f0842 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Fri, 28 Oct 2022 12:13:08 +0000 Subject: [PATCH] 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. --- lisp/progmodes/cc-langs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- 2.39.5