aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/cc-engine.el
diff options
context:
space:
mode:
authorAlan Mackenzie2013-09-18 20:47:37 +0000
committerAlan Mackenzie2013-09-18 20:47:37 +0000
commitee3ce8a7bbca3f9777c0f3eec6d09be465d051bf (patch)
tree9446a0117121f037bd573579fdedfba9e7946892 /lisp/progmodes/cc-engine.el
parentabd49271dbcbd1cc0ece36c6f78a142d91d2fa03 (diff)
downloademacs-ee3ce8a7bbca3f9777c0f3eec6d09be465d051bf.tar.gz
emacs-ee3ce8a7bbca3f9777c0f3eec6d09be465d051bf.zip
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.
Diffstat (limited to 'lisp/progmodes/cc-engine.el')
-rw-r--r--lisp/progmodes/cc-engine.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el
index c8a9c461a9d..582f7ef0a54 100644
--- a/lisp/progmodes/cc-engine.el
+++ b/lisp/progmodes/cc-engine.el
@@ -7408,7 +7408,11 @@ comment at the start of cc-engine.el for more info."
7408 ;; interactive refontification. 7408 ;; interactive refontification.
7409 (c-put-c-type-property (point) 'c-decl-arg-start)) 7409 (c-put-c-type-property (point) 'c-decl-arg-start))
7410 7410
7411 (when (and c-record-type-identifiers at-type (not (eq at-type t))) 7411 (when (and c-record-type-identifiers at-type ;; (not (eq at-type t))
7412 ;; There seems no reason to exclude a token from
7413 ;; fontification just because it's "a known type that can't
7414 ;; be a name or other expression". 2013-09-18.
7415 )
7412 (let ((c-promote-possible-types t)) 7416 (let ((c-promote-possible-types t))
7413 (save-excursion 7417 (save-excursion
7414 (goto-char type-start) 7418 (goto-char type-start)