diff options
author | Alan Mackenzie <acm@muc.de> | 2016-04-01 12:50:14 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2016-04-01 12:56:16 +0000 |
commit | 9151f16e8131e6fcd94aa9c8a1b10d9b08656b64 (patch) | |
tree | a83f423ef9299c6c1da09fd5d3a771df95c251db /lisp/emacs-lisp/backquote.el | |
parent | b3b523cdd66c53677c39f743a18e4c180c2ec248 (diff) | |
download | emacs-9151f16e8131e6fcd94aa9c8a1b10d9b08656b64.tar.gz emacs-9151f16e8131e6fcd94aa9c8a1b10d9b08656b64.tar.bz2 emacs-9151f16e8131e6fcd94aa9c8a1b10d9b08656b64.zip |
Prevent C++ Mode wrongly fontifying some identifiers near templates as types
This fixes debbugs #7917.
* lisp/progmodes/cc-engine.el (c-forward-keyword-prefixed-id): Accept 'maybe
(from c-forward-type) as sufficient to record an id. Record type id as well
as ref ids.
(c-forward-name): Bind c-last-identifier-range around the call to
c-forward-<>-arglist to prevent it getting corrupted. Don't automatically
assume an identifier is a type when a template ">" is followed by a "(".
(c-forward-type): Don't automatically assume an identifier is a type when a
template ">" is followed by a "(".
* lisp/progmodes/cc-fonts.el (c-font-lock-<>-arglists): Don't fontify an
identifier as a type when its associated ">" is followed by a "(".
Diffstat (limited to 'lisp/emacs-lisp/backquote.el')
0 files changed, 0 insertions, 0 deletions