diff options
author | Alan Mackenzie <acm@muc.de> | 2013-09-18 20:47:37 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2013-09-18 20:47:37 +0000 |
commit | ee3ce8a7bbca3f9777c0f3eec6d09be465d051bf (patch) | |
tree | 9446a0117121f037bd573579fdedfba9e7946892 /lisp | |
parent | abd49271dbcbd1cc0ece36c6f78a142d91d2fa03 (diff) | |
download | emacs-ee3ce8a7bbca3f9777c0f3eec6d09be465d051bf.tar.gz emacs-ee3ce8a7bbca3f9777c0f3eec6d09be465d051bf.tar.bz2 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')
-rw-r--r-- | lisp/ChangeLog | 6 | ||||
-rw-r--r-- | lisp/progmodes/cc-engine.el | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index abe2ed75ad0..49f5d73442e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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. 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." ;; 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) |