emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] support a few of the new features of C++11 in syntax highlig


From: Rüdiger Sonderfeld
Subject: Re: [PATCH] support a few of the new features of C++11 in syntax highlighting
Date: Tue, 18 Nov 2014 17:36:06 +0100
User-agent: KMail/4.13.3 (Linux/3.13.0-39-generic; KDE/4.13.3; x86_64; ; )

On Tuesday 18 November 2014 15:47:43 Óscar Fuentes wrote:
> Daniel Colascione <address@hidden> writes:
> >>> The "alignof" keyword is the only one still missing.
> >> 
> >> From the top of my head: override is also missing.
> > 
> > Because "override" (and "final") are keywords only in certain semantic
> > contexts, supporting them requires special care.
> 
> override and final have the same context as `const' for methods, so we
> could take that as a model. Skimming over cc-langs.el didn't show an
> obvious place for it, though.

Yes, but "const" has a meaning in other places as well.  That's why it is 
dealt with in `c-type-modifier-kwds'.  I think the problem is similar for 
"noexcept".  I've simply added it to `c-type-modifier-kwds' for now.  But it's 
actually the wrong place.  However unlike "override" and "final", there is 
also an operator version of "noexcept".

Regards,
Rüdiger




reply via email to

[Prev in Thread] Current Thread [Next in Thread]