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) ?:)
(save-excursion
(c-backward-syntactic-ws)
(c-on-identifier)))
(or (c-on-identifier)
(progn
(c-backward-token-2)
(looking-at c-brace-list-key)))))
(setq colon-pos (point))
(forward-char)
(c-forward-syntactic-ws)
......
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