From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#62339: cc-mode fontifies variables incorrectly when const follows type Date: Wed, 22 Mar 2023 17:12:52 +0200 Message-ID: <83ttyc6cqz.fsf@gnu.org> References: <878rfqcez5.fsf@dancol.org> <837cva6m1e.fsf@gnu.org> <87y1no6f6d.fsf@dancol.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31970"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62339@debbugs.gnu.org To: Daniel Colascione , Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 22 16:13:31 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pf09a-0008AQ-TM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Mar 2023 16:13:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pf09A-0004z5-Gq; Wed, 22 Mar 2023 11:13:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pf098-0004yf-PV for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 11:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pf098-0004QQ-H6 for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 11:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pf098-0006Bf-8V for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 11:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Mar 2023 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62339 X-GNU-PR-Package: emacs Original-Received: via spool by 62339-submit@debbugs.gnu.org id=B62339.167949796823761 (code B ref 62339); Wed, 22 Mar 2023 15:13:02 +0000 Original-Received: (at 62339) by debbugs.gnu.org; 22 Mar 2023 15:12:48 +0000 Original-Received: from localhost ([127.0.0.1]:36364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pf08u-0006BB-Hg for submit@debbugs.gnu.org; Wed, 22 Mar 2023 11:12:48 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pf08s-0006Ax-DZ for 62339@debbugs.gnu.org; Wed, 22 Mar 2023 11:12:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pf08l-0004G9-HT; Wed, 22 Mar 2023 11:12:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7L3QV9z3Eood3YlV4cz4atZ278Y8JvMibC8HtTuRXXg=; b=qjQdvvzw827L QltptNvjuhulKHl35yu5NGLAwZXFP3Gg2bsWXxJpH0AvDuXP2BVbW1Ei5BP13p6R0zSoVjDlWab5A 8yWgjrztN4RQTFQDQOb3nSRUeU47JxejLrH98jrQu7jwk2LZP+11A+EhWiPUHr809ArDUqNe4XcSG FIkpOAUW1Ldlw5ng4/Fw6LRxRLyowBoF9rQOtEG+pBxrPix0zgy4MtmS8KDqrBmqMZ8fb5EzWS28S MBQBV/9UAE8vfuFvHQCs260qs1uMmlZyfgY3eSMIDeAGVsnSY6FoRsmDm3wpPmFfvunpknprN5IxO JeY+FI4DJp6nEBfzB0v1+Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pf08k-0008TF-Dn; Wed, 22 Mar 2023 11:12:39 -0400 In-Reply-To: <87y1no6f6d.fsf@dancol.org> (message from Daniel Colascione on Wed, 22 Mar 2023 10:19:55 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:258401 Archived-At: > From: Daniel Colascione > Cc: 62339@debbugs.gnu.org > Date: Wed, 22 Mar 2023 10:19:55 -0400 > > This problem reproduces for me on latest master with emacs -Q: > > ``` > TEST(Foo, Bar) { > NamedTemporaryDirectory const test_directory; > } > ``` Thanks. What I see with Emacs built from master is that test_directory in the above example gets font-lock-type-face in c++-mode (but not in c-mode). With Emacs built from emacs-29, both modes produce correct fontification. Alan, can you please look into this?