Allow for the :: operator in C++ "enum class" declarations.

* lisp/progmodes/cc-engine.el (c-backward-typed-enum-colon): Check for
"::".
This commit is contained in:
Alan Mackenzie 2017-02-25 14:53:59 +00:00
parent d79fd6c95e
commit 54319e7a24

View file

@ -10130,6 +10130,8 @@ comment at the start of cc-engine.el for more info."
(or (not (looking-at "\\s)"))
(c-go-up-list-backward))
(cond
((looking-at "::")
t)
((and (eql (char-after) ?:)
(save-excursion
(c-backward-syntactic-ws)