Commit 799a8a33 authored by Alan Mackenzie's avatar Alan Mackenzie

Analyze and fontify correctly a C++ `enum' with colon, but lacking a tag.

* lisp/progmodes/cc-engine.el (c-backward-typed-enum-colon): Check for "enum"
directly preceding the colon, and handle it.
parent 90d258c5
......@@ -9756,7 +9756,10 @@ comment at the start of cc-engine.el for more info."
((and (eql (char-after) ?:)
(or (c-on-identifier)
(looking-at c-brace-list-key)))))
(setq colon-pos (point))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment