1 new commit in cc-mode:
https://bitbucket.org/xemacs/cc-mode/commits/f30859593cbf/
Changeset: f30859593cbf
User: acm
Date: 2017-11-12 11:32:17+00:00
Summary: CC Mode: Fix defun-open being recognized as brace-list-open at EOB.
* cc-engine.el (c-looking-at-statement-block): Add handling for an open brace
at EOB and nested braces inside an unclosed brace block.
Affected #: 1 file
diff -r 655ca3305b88fefc49a564bf97340b65da01da8f -r
f30859593cbf2f12da6fbd1827786a87b123ab2d cc-engine.el
--- a/cc-engine.el
+++ b/cc-engine.el
@@ -10749,10 +10749,8 @@
(t ; We're at (1+ here).
(cond
((progn (c-forward-syntactic-ws)
- (eq (point) (1- there)))
- t)
- ((c-syntactic-re-search-forward c-keywords-regexp there t)
- t)
+ (eq (point) (1- there))))
+ ((c-syntactic-re-search-forward c-keywords-regexp there t))
((c-syntactic-re-search-forward "{" there t t)
(backward-char)
(c-looking-at-statement-block))
@@ -10761,8 +10759,12 @@
(cond
((c-syntactic-re-search-forward "[;,]" nil t t)
(eq (char-before) ?\;))
- ((c-syntactic-re-search-forward c-keywords-regexp nil t t)
- t)
+ ((progn (c-forward-syntactic-ws)
+ (eobp)))
+ ((c-syntactic-re-search-forward c-keywords-regexp nil t t))
+ ((c-syntactic-re-search-forward "{" nil t t)
+ (backward-char)
+ (c-looking-at-statement-block))
(t nil)))
(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.