From 54319e7a2418690508f29cd6833c9fd9ecbc2fa3 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Sat, 25 Feb 2017 14:53:59 +0000 Subject: [PATCH] Allow for the :: operator in C++ "enum class" declarations. * lisp/progmodes/cc-engine.el (c-backward-typed-enum-colon): Check for "::". --- lisp/progmodes/cc-engine.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index dfd7aebd569..a5ade09791a 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el @@ -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) -- 2.11.4.GIT