From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64204: C/C++ local variables not syntax highlighted if they start with $ Date: Thu, 22 Jun 2023 19:46:41 +0800 Message-ID: <87zg4rzplq.fsf@yahoo.com> 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> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32014"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: acm@muc.de, 64204@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 13:47:23 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 1qCImZ-000872-6l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 13:47:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCImG-0007XC-Sv; Thu, 22 Jun 2023 07:47: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 1qCImF-0007Ss-04 for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 07:47: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 1qCImE-0004zi-NK for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 07:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCImE-0008Aa-7j for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 07:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jun 2023 11:47: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.168743441831393 (code B ref 64204); Thu, 22 Jun 2023 11:47:02 +0000 Original-Received: (at 64204) by debbugs.gnu.org; 22 Jun 2023 11:46:58 +0000 Original-Received: from localhost ([127.0.0.1]:35018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCIm9-0008AH-Mx for submit@debbugs.gnu.org; Thu, 22 Jun 2023 07:46:57 -0400 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:33373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCIm8-0008A2-FB for 64204@debbugs.gnu.org; Thu, 22 Jun 2023 07:46:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687434411; bh=cISquAnSnVEVvgFhsDYKb049ai+Fa6OyG+bAY/92/m8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=ZHBZCAmPJtfRvqIw8/L8gUKcLUYRlNf7ON/0wo+dsD7ztdYyWPjEtnNcuLR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ZKtumdImv qSfvk3mh2xvLsUbMnMlx68cyLqLLKLDyUj44Rduk6L0rxi6dmauwoVqce5vU6LtKk2_VwQup_23F LGeAtrtf3d8esWzrKFJ6MxEsrnhNzL.6vZyzRSiMDhwY3YLAX93KR.uvhGWGLGOGdxnh6UAB2eL2 fAhRkLCtFSn5CfRVRJ_JMHhyMyE.ez0MfH2w4kVdmg5QniMApktPFS4ZAu7ZsoGP0qNxSpffhjQG fTHJvBCARHzpfg0Peju1e0GEQSsLFiGTJaAf8uybml0vkn0paNTQrlwLptahYquAk7TSSHU8h1hH 1tc0XWYMXZI6VOsL1sHs1YC.Ic2882TscAuFy1CVuVE7Bpuf6iERKIhI9rSjk0eaevpT_aUwmIR8 8r59MA4kM6IrrU7054J_yP.ZaFjqUzXbNCIxFiNf7MNhDtaFmcYioAlPT9L5uKFb2JZY.ivTbh8U YsN3CZEAALyhVt9nxDenMl6EigtZS38iX1Yo30Cd7SdNtOTi3YJTPml7OzpuZ.vlOZ9d50FDcJJr GUNYc7Wqv2e7paIdy8bvA0DcYPh7F7isezgJqg62xu X-Sonic-MF: X-Sonic-ID: a0582927-3548-4742-9ff8-31e2da2989fe Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Thu, 22 Jun 2023 11:46:51 +0000 Original-Received: by hermes--production-sg3-748897c457-gjhr4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 218b8708723bafc6069069bfeb65689f; Thu, 22 Jun 2023 11:46:46 +0000 (UTC) In-Reply-To: <83352j4xq1.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jun 2023 13:07:02 +0300") X-Mailer: WebService/1.1.21557 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:263873 Archived-At: 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. 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. Thanks.