From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?R=FCdiger?= Sonderfeld Newsgroups: gmane.emacs.devel 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 Message-ID: <3893580.J5y1DMedfv@descartes> References: <546B4013.6080507@dancol.org> <878uj85zw0.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416328627 3327 80.91.229.3 (18 Nov 2014 16:37:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Nov 2014 16:37:07 +0000 (UTC) Cc: =?ISO-8859-1?Q?=D3scar?= Fuentes To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 18 17:36:59 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xqllx-0002ge-MR for ged-emacs-devel@m.gmane.org; Tue, 18 Nov 2014 17:36:57 +0100 Original-Received: from localhost ([::1]:54088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xqllx-0004NI-AZ for ged-emacs-devel@m.gmane.org; Tue, 18 Nov 2014 11:36:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqllY-0004DL-E0 for emacs-devel@gnu.org; Tue, 18 Nov 2014 11:36:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XqllO-00059T-MT for emacs-devel@gnu.org; Tue, 18 Nov 2014 11:36:32 -0500 Original-Received: from ptmx.org ([178.63.28.110]:59615) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XqllO-00059H-Gv for emacs-devel@gnu.org; Tue, 18 Nov 2014 11:36:22 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by ptmx.org (Postfix) with ESMTP id BC3F52C9FB; Tue, 18 Nov 2014 17:36:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at ptmx.org Original-Received: from ptmx.org ([127.0.0.1]) by localhost (ptmx.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fuYhsw7HoxXE; Tue, 18 Nov 2014 17:36:15 +0100 (CET) Original-Received: from descartes.localnet (chello080109100138.16.15.univie.teleweb.at [80.109.100.138]) by ptmx.org (Postfix) with ESMTPSA id C67912C9AC; Tue, 18 Nov 2014 17:36:14 +0100 (CET) User-Agent: KMail/4.13.3 (Linux/3.13.0-39-generic; KDE/4.13.3; x86_64; ; ) In-Reply-To: <878uj85zw0.fsf@wanadoo.es> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 178.63.28.110 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:177580 Archived-At: On Tuesday 18 November 2014 15:47:43 =C3=93scar Fuentes wrote: > Daniel Colascione writes: > >>> The "alignof" keyword is the only one still missing. > >>=20 > >> From the top of my head: override is also missing. > >=20 > > Because "override" (and "final") are keywords only in certain seman= tic > > contexts, supporting them requires special care. >=20 > override and final have the same context as `const' for methods, so w= e > 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=20 dealt with in `c-type-modifier-kwds'. I think the problem is similar f= or=20 "noexcept". I've simply added it to `c-type-modifier-kwds' for now. B= ut it's=20 actually the wrong place. However unlike "override" and "final", there= is=20 also an operator version of "noexcept". Regards, R=C3=BCdiger