]> git.eshelyaron.com Git - emacs.git/commitdiff
CC Mode: Fix wrong fontification of FOO in ASSERT (FOO && !BAR)
authorAlan Mackenzie <acm@muc.de>
Sat, 21 Sep 2019 12:35:34 +0000 (12:35 +0000)
committerAlan Mackenzie <acm@muc.de>
Sat, 21 Sep 2019 12:35:34 +0000 (12:35 +0000)
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't recognize the
construct in CASE 18, unless additionally at-decl-end is set.

lisp/progmodes/cc-engine.el

index 4916b1dabb8088a6a375a6ee56d3af3b53191794..6d7d322def7a0979acef9e4f1d0e10d1fc41bae8 100644 (file)
@@ -10100,7 +10100,8 @@ This function might do hidden buffer changes."
                     (throw 'at-decl-or-cast t)))))
 
           ;; CASE 18
-          (when (and (not (memq context '(nil top)))
+          (when (and at-decl-end
+                     (not (memq context '(nil top)))
                      (or (and got-prefix (not got-number))
                          (and (eq context 'decl)
                               (not c-recognize-paren-inits)