aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/cc-engine.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index a1574b23c5a..9bd78fb821f 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -8631,8 +8631,10 @@ comment at the start of cc-engine.el for more info."
8631 8631
8632 ;; CASE 11 8632 ;; CASE 11
8633 (when (and got-identifier 8633 (when (and got-identifier
8634 (memq context '(nil top))
8635 (looking-at c-after-suffixed-type-decl-key) 8634 (looking-at c-after-suffixed-type-decl-key)
8635 (or (eq context 'top)
8636 (and eq context nil
8637 (match-beginning 1)))
8636 (if (and got-parens 8638 (if (and got-parens
8637 (not got-prefix) 8639 (not got-prefix)
8638 (not got-suffix) 8640 (not got-suffix)
@@ -9310,7 +9312,7 @@ comment at the start of cc-engine.el for more info."
9310 (c-forward-objc-directive))) 9312 (c-forward-objc-directive)))
9311 9313
9312 (setq id-start 9314 (setq id-start
9313 (car-safe (c-forward-decl-or-cast-1 (c-point 'bosws) nil nil))) 9315 (car-safe (c-forward-decl-or-cast-1 (c-point 'bosws) 'top nil)))
9314 (< id-start beg) 9316 (< id-start beg)
9315 9317
9316 ;; There should not be a '=' or ',' between beg and the 9318 ;; There should not be a '=' or ',' between beg and the