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: Tue, 21 Mar 2023 19:39:57 +0200 Message-ID: <837cva6m1e.fsf@gnu.org> References: <878rfqcez5.fsf@dancol.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27551"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62339@debbugs.gnu.org To: Daniel Colascione Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 21 18:40:25 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 1pefyD-0006y5-Qe for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Mar 2023 18:40:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pefxv-0005D0-11; Tue, 21 Mar 2023 13:40:08 -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 1pefxr-0005By-DZ for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 13:40:03 -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 1pefxr-00071H-1J for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 13:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pefxq-0000v3-QQ for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 13:40: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: Tue, 21 Mar 2023 17:40: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.16794203963510 (code B ref 62339); Tue, 21 Mar 2023 17:40:02 +0000 Original-Received: (at 62339) by debbugs.gnu.org; 21 Mar 2023 17:39:56 +0000 Original-Received: from localhost ([127.0.0.1]:60468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pefxj-0000uX-SD for submit@debbugs.gnu.org; Tue, 21 Mar 2023 13:39:56 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pefxh-0000uC-UW for 62339@debbugs.gnu.org; Tue, 21 Mar 2023 13:39:54 -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 1pefxc-0006sq-20; Tue, 21 Mar 2023 13:39:48 -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=NrDPkI6is4IGkwDVOxYtDu0XHOO1AxjmU973nVCADe0=; b=UQAASEOyP+KT sqi2CJ+b3RuNos9pGVmc8xw60nZ6IxT2P/1Vflz7UIr38Qs3p4fMriaB9RVTiacRj5lLrAIwYywmD hf9KAHtJjeNxTK8pBIBgGXAzKh8zVt2LmYHeyvSrYZYiPkSKXiveS0Zb4ZuG/OBlTnS2bQYhrh5cp UWIt6Y0AIhzZu5vaH4fUY32PiMU3+/ivN20GwQ1JNfklmk/p9m90y5nXiPklekhvMCwdwGSwDivvj 7MR4YILppFHiiNnFk16ZLpswelh4sB7neud4lYjwT7M8bCC7dqgd2TEZZut2Zvw/zM+orUAgaj2qY gf+bGAG3uQO1ptvLSkXqQg==; 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 1pefxZ-0005Y7-UQ; Tue, 21 Mar 2023 13:39:47 -0400 In-Reply-To: <878rfqcez5.fsf@dancol.org> (message from Daniel Colascione on Tue, 21 Mar 2023 11:14:13 -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:258358 Archived-At: > 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.