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#64204: C/C++ local variables not syntax highlighted if they start with $ Date: Thu, 22 Jun 2023 15:00:00 +0300 Message-ID: <83ttuz3dxb.fsf@gnu.org> References: <87edm52fu1.fsf@yahoo.com> <83cz1o3xso.fsf@gnu.org> <87legc126a.fsf@yahoo.com> <837crw3up9.fsf@gnu.org> <87h6r010le.fsf@yahoo.com> <834jn03s1n.fsf@gnu.org> <87cz1o0xyh.fsf@yahoo.com> <83352j4xq1.fsf@gnu.org> <87zg4rzplq.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20214"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 64204@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 14:00: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 1qCIzA-00053E-Lp for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 14:00:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCIyr-0007ef-5y; Thu, 22 Jun 2023 08:00:05 -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 1qCIyo-0007eG-TM for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 08:00: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 1qCIyo-0002zj-Gl for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 08:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCIyo-0000Bg-Ae for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 08:00: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: Thu, 22 Jun 2023 12:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64204 X-GNU-PR-Package: emacs Original-Received: via spool by 64204-submit@debbugs.gnu.org id=B64204.1687435198666 (code B ref 64204); Thu, 22 Jun 2023 12:00:02 +0000 Original-Received: (at 64204) by debbugs.gnu.org; 22 Jun 2023 11:59:58 +0000 Original-Received: from localhost ([127.0.0.1]:35086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCIyj-0000Af-RI for submit@debbugs.gnu.org; Thu, 22 Jun 2023 07:59:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCIyi-0000AP-BO for 64204@debbugs.gnu.org; Thu, 22 Jun 2023 07:59:57 -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 1qCIyc-0002xM-AW; Thu, 22 Jun 2023 07:59:50 -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=B0AjcFnH7pY8v43Y+X2sIXrv5xIfWviHAJG5k0fHm4k=; b=RGPUGhGFnlSv W3QwrqQDtuPjLsaF4gZyK9FPu7/fNk+loiSdrrm6RzYesfLg6a7au+R53V3ObJ1YRqLl40lrYR+Xw 08pgzxukQ4bE0GEzYRTe+V6BT8jCUZ35KIdtpkCkYO7ILQ1yQzLBI+PioXrJe5Wi6vgx7L64Lbjjd KmWeFjmmQC3+Ix4hy+4g2MbsUOhbPG+SIEFfqzWMj4sU22Dy1ShSiDkM+61Djjczgq305B+/wdKRb oaC1mYCtzqZJVQLFbiJbbw0BBah1P/1AB8ohOCorPRW4xXZ8WuaemksBHA/FTm0ch7I5j3G7Jjanp no5aB42UYOgnuza9497kyg==; 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 1qCIyb-0003jD-QO; Thu, 22 Jun 2023 07:59:50 -0400 In-Reply-To: <87zg4rzplq.fsf@yahoo.com> (message from Po Lu on Thu, 22 Jun 2023 19:46:41 +0800) 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:263875 Archived-At: > From: Po Lu > Cc: acm@muc.de, 64204@debbugs.gnu.org > Date: Thu, 22 Jun 2023 19:46:41 +0800 > > Eli Zaretskii writes: > > > I _am_ talking about fontifications. One of the main purposes of > > fontifying code is to give the programmer feedback regarding the > > syntax and semantics of the code. Flagging invalid syntax is > > therefore important, and when $ are invalid in identifiers, showing > > that with fontifications is important. > > But CC Mode fontification has never been intended to flag invalid > syntax: instead of not being fontified at all, invalid syntax is simply > fontified every which way. It is fontified the way the syntax is interpreted, which is exactly what I'm talking about. > This is not a problem one option can solve; it will require large > scale redesign of CC Mode, and detecting invalid syntax is more the > forte of c-ts-mode anyway. No redesign is needed.