]> git.eshelyaron.com Git - emacs.git/commitdiff
CC Mode: Fix wrong fontification of enum foo bar; in Objective C Mode
authorAlan Mackenzie <acm@muc.de>
Fri, 28 Oct 2022 12:13:08 +0000 (12:13 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 28 Oct 2022 12:15:18 +0000 (12:15 +0000)
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

index 6ccd6c30df95b287447f093113d8bda26d73a23f..fc3977967b5a112cb43f86573ff13bff6a7ed8c5 100644 (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)))