diff options
author | Alan Mackenzie <acm@muc.de> | 2017-09-18 08:52:24 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2017-09-18 08:52:24 +0000 |
commit | 61a5c30e70926f48480b03b79f4f531c8d64418e (patch) | |
tree | 504d5533ad5177b4156dcc691cffc62ba510ee3e /src/lisp.h | |
parent | 198ba449845ffa557ac272c3219c703148648f53 (diff) | |
download | emacs-61a5c30e70926f48480b03b79f4f531c8d64418e.tar.gz emacs-61a5c30e70926f48480b03b79f4f531c8d64418e.tar.bz2 emacs-61a5c30e70926f48480b03b79f4f531c8d64418e.zip |
Fix irregularities with CC Mode fontification, particularly with "known types"
* lisp/progmodes/cc-fonts.el (c-font-lock-declarators): Introduce a new
optional parameter, template-class. In "class <X = Y>", fontify "Y" as a
type.
(c-font-lock-single-decl): New variable template-class, set to non-nil when we
have a construct like the above. Pass this as argument to
c-font-lock-declarators.
(c-font-lock-cut-off-declarators): Check more rigorously that a declaration
being processed starts before the function's starting position.
(c-complex-decl-matchers): Remove the redundant clause which fontified "types
preceded by, e.g., "struct"".
* lisp/progmodes/cc-langs.el (c-template-typename-kwds)
(c-template-typename-key): New lang defconsts and defvar.
Diffstat (limited to 'src/lisp.h')
0 files changed, 0 insertions, 0 deletions