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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user