aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2017-02-25 14:53:59 +0000
committerAlan Mackenzie2017-02-25 14:53:59 +0000
commit54319e7a2418690508f29cd6833c9fd9ecbc2fa3 (patch)
tree54bf085b07df1a9123e32b7ce618956c3f9f1a9d
parentd79fd6c95ed0affa693d07fb664a97db2848a0f0 (diff)
downloademacs-54319e7a2418690508f29cd6833c9fd9ecbc2fa3.tar.gz
emacs-54319e7a2418690508f29cd6833c9fd9ecbc2fa3.zip
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.el2
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."
10130 (or (not (looking-at "\\s)")) 10130 (or (not (looking-at "\\s)"))
10131 (c-go-up-list-backward)) 10131 (c-go-up-list-backward))
10132 (cond 10132 (cond
10133 ((looking-at "::")
10134 t)
10133 ((and (eql (char-after) ?:) 10135 ((and (eql (char-after) ?:)
10134 (save-excursion 10136 (save-excursion
10135 (c-backward-syntactic-ws) 10137 (c-backward-syntactic-ws)