From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#36650: 27.0.50; CC Mode: Support C++ attributes Date: Sun, 14 Jul 2019 16:49:01 +0200 Message-ID: <87y310acyq.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="136062"; mail-complaints-to="usenet@blaine.gmane.org" To: 36650@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 14 17:06:18 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 1hmg4t-000Yj4-1T for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jul 2019 17:06:15 +0200 Original-Received: from localhost ([::1]:60888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmfpH-0001WH-13 for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jul 2019 10:50:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54478) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmfpE-0001Vq-Bs for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 10:50:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmfpD-0001gt-8D for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 10:50:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36790) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmfpD-0001gn-4m for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 10:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hmfpD-0005IJ-03 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 10:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2019 14:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36650 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156311575220279 (code B ref -1); Sun, 14 Jul 2019 14:50:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jul 2019 14:49:12 +0000 Original-Received: from localhost ([127.0.0.1]:45611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmfoO-0005H1-75 for submit@debbugs.gnu.org; Sun, 14 Jul 2019 10:49:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmfoM-0005Gt-7x for submit@debbugs.gnu.org; Sun, 14 Jul 2019 10:49:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54225) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmfoL-0001QT-3H for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 10:49:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmfoJ-0001Ff-Vi for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 10:49:09 -0400 Original-Received: from relayout01.e.movistar.es ([86.109.101.201]:57489 helo=relayout01-redir.e.movistar.es) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hmfoJ-0001Cx-O5 for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 10:49:07 -0400 Original-Received: from sky (162.red-79-151-6.dynamicip.rima-tde.net [79.151.6.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout01.e.movistar.es (Postfix) with ESMTPSA id 45mqL63m2bzfZjC for ; Sun, 14 Jul 2019 16:49:02 +0200 (CEST) X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-TnetOut-Country: IP: 79.151.6.162 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout01 X-TnetOut-MsgID: 45mqL63m2bzfZjC.A62BF X-TnetOut-SpamCheck: no es spam, Unknown X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1563720542.73903@6ZshC0fvkjMYTK4+76tJ5Q X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:162996 Archived-At: 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. Attributes are described here: https://en.cppreference.com/w/cpp/language/attributes In general, considering them part of the following token for indentation purposes and fontifying with some existing or new face should be enough. 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.12004000 System Description: Debian GNU/Linux 10 (buster)