changeset 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 a1d543786f30
children b1f456ab1e26
files lisp/progmodes/cc-engine.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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)))