[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 54319e7: Allow for the :: operator in C++ "enum cla
From: |
Alan Mackenzie |
Subject: |
[Emacs-diffs] master 54319e7: Allow for the :: operator in C++ "enum class" declarations. |
Date: |
Sat, 25 Feb 2017 09:56:34 -0500 (EST) |
branch: master
commit 54319e7a2418690508f29cd6833c9fd9ecbc2fa3
Author: Alan Mackenzie <address@hidden>
Commit: Alan Mackenzie <address@hidden>
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 dfd7aeb..a5ade09 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 54319e7: Allow for the :: operator in C++ "enum class" declarations.,
Alan Mackenzie <=