From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#36650: 27.0.50; CC Mode: Support C++ attributes Date: 15 Jul 2019 14:27:18 -0000 Organization: muc.de e.V. Message-ID: <20190715142718.71903.qmail@mail.muc.de> References: <87y310acyq.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="106556"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: tin/2.4.2-20171224 ("Lochhead") (UNIX) (FreeBSD/11.2-RELEASE-p9 (amd64)) Cc: 36650@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 16:28:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hn1xX-000RTi-EN for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 16:28:07 +0200 Original-Received: from localhost ([::1]:39382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn1xW-0002me-CG for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 10:28:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33823) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn1xT-0002mK-L1 for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 10:28:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn1xS-0004pv-Gv for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 10:28:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39850) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn1xS-0004pq-DJ; Mon, 15 Jul 2019 10:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hn1xS-0000Ys-6O; Mon, 15 Jul 2019 10:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 15 Jul 2019 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36650 X-GNU-PR-Package: emacs,cc-mode Original-Received: via spool by 36650-submit@debbugs.gnu.org id=B36650.15632008482111 (code B ref 36650); Mon, 15 Jul 2019 14:28:02 +0000 Original-Received: (at 36650) by debbugs.gnu.org; 15 Jul 2019 14:27:28 +0000 Original-Received: from localhost ([127.0.0.1]:48671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn1wt-0000Xy-9x for submit@debbugs.gnu.org; Mon, 15 Jul 2019 10:27:28 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:23820 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1hn1wp-0000Xi-4G for 36650@debbugs.gnu.org; Mon, 15 Jul 2019 10:27:23 -0400 Original-Received: (qmail 71904 invoked by uid 3782); 15 Jul 2019 14:27:18 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163118 Archived-At: Hello, =C3=93scar. In article you wrote= : > CC Mode does not recognize C++ attributes. Just as an example, the > presence of an attribute causes wrong indentation on this example: > struct C { > C([[maybe_unused]] int x, int y) > : a(y) > {} > int a; > }; > The line that begins with the colon should get another indentation > level. Yes. I'll have a look at this. > Attributes are described here: > https://en.cppreference.com/w/cpp/language/attributes Thanks. > In general, considering them part of the following token for indentatio= n > purposes and fontifying with some existing or new face should be enough= . I will probably end up treating attributes as syntactic whitespace. They have no syntactic connection with the code they are embedded in, any more than macros do. > In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit) > of 2019-06-29 built on sky > Repository revision: 0b2841f9fb0ffd8514b0fb99c5673adad6b07abb > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.12004= 000 > System Description: Debian GNU/Linux 10 (buster) --=20 Alan Mackenzie (Nuremberg, Germany).