diff lisp/progmodes/cc-engine.el @ 79838:2ec37d0d0d39

(c-guess-basic-syntax): prevent a macro call inside a struct being recognised as a K&R argument.
author Alan Mackenzie <acm@muc.de>
date Mon, 14 Jan 2008 19:17:31 +0000
parents a1342e6e097a
children 99c850a55c1c
line wrap: on
line diff
--- a/lisp/progmodes/cc-engine.el	Mon Jan 14 19:16:12 2008 +0000
+++ b/lisp/progmodes/cc-engine.el	Mon Jan 14 19:17:31 2008 +0000
@@ -8293,6 +8293,7 @@
 
 	   ;; CASE 5H: we could be looking at subsequent knr-argdecls
 	   ((and c-recognize-knr-p
+		 (not containing-sexp)	; can't be knr inside braces.
 		 (not (eq char-before-ip ?}))
 		 (save-excursion
 		   (setq placeholder (cdr (c-beginning-of-decl-1 lim)))