]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Fix the fontification of a spuriously recognised enum member.
authorAlan Mackenzie <acm@muc.de>
Fri, 30 Dec 2016 15:31:42 +0000 (15:31 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 30 Dec 2016 15:31:42 +0000 (15:31 +0000)
commita285645b8ba0b01e559a26258035ae1a70e3fad2
tree787ddbdd0069b56c737d94880ae0bf2e64e978d0
parent543532313a1d9570d6a74a7846b4e776a2282964
CC Mode: Fix the fontification of a spuriously recognised enum member.

The "enum" was in an argument list, but triggered the fontification of a
following identifier in the function block as though it were in an enum
declaration.

* lisp/progmodes/cc-fonts.el (c-font-lock-enum-body): New function.
(c-basic-matchers-after): Replace the inline stanza for enum elements with a
call to c-font-lock-enum-body.

* lisp/progmodes/cc-langs.el (c-enum-clause-introduction-re): New language
variable.
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-langs.el