]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-guess-basic-syntax): prevent a macro call inside a struct being
authorAlan Mackenzie <acm@muc.de>
Mon, 14 Jan 2008 19:23:32 +0000 (19:23 +0000)
committerAlan Mackenzie <acm@muc.de>
Mon, 14 Jan 2008 19:23:32 +0000 (19:23 +0000)
recognised as a K&R argument.

lisp/progmodes/cc-engine.el

index 7cac158166e0032c33555365dd64ec42bcb83d91..9718bd0ddc96670d284d2adff74e5bef31545af4 100644 (file)
@@ -8296,6 +8296,7 @@ comment at the start of cc-engine.el for more info."
 
           ;; 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)))