Correct indentation of ids in a C++ enum after a protection keyword.
commit48b24c9b031ba593426d4e9980b360c273f57166
authorAlan Mackenzie <acm@muc.de>
Fri, 29 Apr 2016 13:35:01 +0000 (29 13:35 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 29 Apr 2016 13:35:01 +0000 (29 13:35 +0000)
treeb0bd4f7b5147e4a22964a56b1505130225dbd4eb
parent5c3534ffdcce41b1aab7bd158cf07224446caa9d
Correct indentation of ids in a C++ enum after a protection keyword.

Also correct the misfontification of the last enum identifier.

* lisp/progmodes/cc-engine.el (c-forward-keyword-prefixed-id): setq
c-last-identifier-range to nil to ensure that only types recognized by this
macro are set for fontification as types.
(c-backward-typed-enum-colon): Function renamed from
c-backward-colon-prefixed-type.  On finding a colon in the backward search,
check it is preceded by an identifier rather than a keyword.
lisp/progmodes/cc-engine.el