From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#62339: cc-mode fontifies variables incorrectly when const follows type Date: Wed, 22 Mar 2023 10:19:55 -0400 Message-ID: <87y1no6f6d.fsf@dancol.org> References: <878rfqcez5.fsf@dancol.org> <837cva6m1e.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16356"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.21; emacs 30.0.50 Cc: 62339@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 22 15:21:29 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 1pezLE-0003yG-C6 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Mar 2023 15:21:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pezKq-0007ZX-Fh; Wed, 22 Mar 2023 10:21: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 1pezKo-0007ZK-Hi for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 10:21: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 1pezKo-0006yZ-8d for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 10:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pezKo-0002KO-39 for bug-gnu-emacs@gnu.org; Wed, 22 Mar 2023 10:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Mar 2023 14:21: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.16794948348900 (code B ref 62339); Wed, 22 Mar 2023 14:21:02 +0000 Original-Received: (at 62339) by debbugs.gnu.org; 22 Mar 2023 14:20:34 +0000 Original-Received: from localhost ([127.0.0.1]:36290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pezKM-0002JU-3z for submit@debbugs.gnu.org; Wed, 22 Mar 2023 10:20:34 -0400 Original-Received: from dancol.org ([96.126.100.184]:43586) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pezKI-0002JI-KC for 62339@debbugs.gnu.org; Wed, 22 Mar 2023 10:20:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:MIME-Version:Message-ID:In-reply-to:Date:Subject:Cc:To: From:References:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=HaW6g+DWiTT7U8TzYS13Cd9DaElTJv70xQCi9J/9MKI=; b=d9Aofzkd8Xo5qClS39xr1/UEzC yqM7S0f+aSSLnkYYpv3h35S8TG7c3zOeWz/xBDcWYWHQHV/P1EO2J6TQGt5rm3Ly0OAaQxACkqK+S hgP82oxu4jtOSoE6e7W3L3mjRxQBvrQmERer4C7eFNjviYdh7YHkwtIuqR55PmQxlnuNdf5j/Gg4G ZxHWEYdNwvw+qYgMsJ5WNRs5mqsqi3PchaVIrtdBEIIDXuWv/cBuaxTeugkuvMgdGkyLNI7v7T3Ws ZXdWedzjqvrbZ5ygpMjb0iKMi04fCoA0+L5UmSnhRzGARp1okYY/p5GETR4l4/8G4AkjSdyyNDNd/ bShP7Ulg==; Original-Received: from 2603-9001-4203-1ab2-7c3f-29cd-ef5a-f3a8.inf6.spectrum.com ([2603:9001:4203:1ab2:7c3f:29cd:ef5a:f3a8]:39124 helo=localhost) by dancol.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pezKF-0007JO-3y; Wed, 22 Mar 2023 07:20:28 -0700 In-reply-to: <837cva6m1e.fsf@gnu.org> 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:258398 Archived-At: Eli Zaretskii writes: >> From: Daniel Colascione >> Date: Tue, 21 Mar 2023 11:14:13 -0400 >> >> >> cc-mode incorrectly fontifies my_variable as a type in "MyType const >> my_variable" > > I cannot reproduce this, at least not in Emacs 29 and 30. In which > version of Emacs do you see this? If Emacs 29 or later, can you show > a minimal example source file where it happens? > > Thanks. This problem reproduces for me on latest master with emacs -Q: ``` TEST(Foo, Bar) { NamedTemporaryDirectory const test_directory; } ```