1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00

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.
This commit is contained in:
Alan Mackenzie 2013-09-18 20:47:37 +00:00
parent abd49271db
commit ee3ce8a7bb
2 changed files with 11 additions and 1 deletions

View 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.

View 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)