changeset 87746:d42f37113aa9

(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:23:32 +0000
parents a9c0447df046
children 35fdb36e9ff1
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:22:27 2008 +0000
+++ b/lisp/progmodes/cc-engine.el	Mon Jan 14 19:23:32 2008 +0000
@@ -8296,6 +8296,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)))