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:
parent
d79fd6c95e
commit
54319e7a24
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue