]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix fontification of type when followed by "const".
authorAlan Mackenzie <acm@muc.de>
Wed, 18 Sep 2013 20:47:37 +0000 (20:47 +0000)
committerAlan Mackenzie <acm@muc.de>
Wed, 18 Sep 2013 20:47:37 +0000 (20:47 +0000)
* progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't exclude
"known" types from fontification.

lisp/ChangeLog
lisp/progmodes/cc-engine.el

index abe2ed75ad0fbf36fd18bfd422ff06cb8695ee26..49f5d73442e0cec9e482106f2a0457456364e21f 100644 (file)
@@ -1,3 +1,9 @@
+2013-09-18  Alan Mackenzie  <acm@muc.de>
+
+       Fix fontification of type when followed by "const".
+       * progmodes/cc-engine.el (c-forward-decl-or-cast-1): Don't exclude
+       "known" types from fontification.
+
 2013-09-18  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp/chart.el (x-display-color-cells): Declare.
index c8a9c461a9db81a1ce853cff4aac67ed41f042a9..582f7ef0a54ef823fd013da942aaaf715a605c64 100644 (file)
@@ -7408,7 +7408,11 @@ comment at the start of cc-engine.el for more info."
        ;; interactive refontification.
        (c-put-c-type-property (point) 'c-decl-arg-start))
 
-      (when (and c-record-type-identifiers at-type (not (eq at-type t)))
+      (when (and c-record-type-identifiers at-type ;; (not (eq at-type t))
+                ;; There seems no reason to exclude a token from
+                ;; fontification just because it's "a known type that can't
+                ;; be a name or other expression".  2013-09-18.
+                )
        (let ((c-promote-possible-types t))
          (save-excursion
            (goto-char type-start)