diff options
author | Alan Mackenzie <acm@muc.de> | 2017-02-25 14:53:59 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2017-02-25 14:53:59 +0000 |
commit | 54319e7a2418690508f29cd6833c9fd9ecbc2fa3 (patch) | |
tree | 54bf085b07df1a9123e32b7ce618956c3f9f1a9d | |
parent | d79fd6c95ed0affa693d07fb664a97db2848a0f0 (diff) | |
download | emacs-54319e7a2418690508f29cd6833c9fd9ecbc2fa3.tar.gz |
Allow for the :: operator in C++ "enum class" declarations.
* lisp/progmodes/cc-engine.el (c-backward-typed-enum-colon): Check for
"::".
-rw-r--r-- | lisp/progmodes/cc-engine.el | 2 |
1 files changed, 2 insertions, 0 deletions
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) |