1 new commit in cc-mode:
https://bitbucket.org/xemacs/cc-mode/commits/5f3321ca1e03/
Changeset: 5f3321ca1e03
User: acm
Date: 2017-06-16 10:26:35+00:00
Summary: Fix hang in CC Mode when ":" is typed after identifier at EOB.
* cc-engine.el (c-forward-declarator): Fix coding error confusing ":" and EOB.
Affected #: 1 file
diff -r e72779a90455e896d708d10f5e549653e0f557dd -r
5f3321ca1e03b410108f8014bcd4fd098b93e500 cc-engine.el
--- a/cc-engine.el
+++ b/cc-engine.el
@@ -8107,7 +8107,7 @@
(and
(setq found
(c-syntactic-re-search-forward
- "[;:,]\\|\\s)\\|\\'\\|\\(=\\|\\s(\\)"
+ "[;:,]\\|\\s)\\|\\(=\\|\\s(\\)"
limit t t))
(eq (char-before) ?:)
(if (looking-at c-:-op-cont-regexp)
@@ -8125,8 +8125,8 @@
(eq (char-before) ?\[)
(c-go-up-list-forward))
(setq brackets-after-id t))
- (backward-char)
- found))
+ (when found (backward-char))
+ t))
(list id-start id-end brackets-after-id (match-beginning 1) decorated)
(goto-char here)
Repository URL:
https://bitbucket.org/xemacs/cc-mode/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.