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 21:20:58 +0800 Message-ID: <87r0q3zl8l.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> <87zg4rzplq.fsf@yahoo.com> <83ttuz3dxb.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="563"; 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 15:22: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 1qCKGX-000AV4-Ic for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 15:22:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCKGE-0005bM-90; Thu, 22 Jun 2023 09:22:06 -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 1qCKGB-0005b5-8X for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 09:22: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 1qCKGA-0006Om-TL for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 09:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCKGA-0002Jj-Go for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 09:22: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 13:22: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.16874400768831 (code B ref 64204); Thu, 22 Jun 2023 13:22:02 +0000 Original-Received: (at 64204) by debbugs.gnu.org; 22 Jun 2023 13:21:16 +0000 Original-Received: from localhost ([127.0.0.1]:35144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCKFQ-0002IN-Aw for submit@debbugs.gnu.org; Thu, 22 Jun 2023 09:21:16 -0400 Original-Received: from sonic313-56.consmr.mail.ne1.yahoo.com ([66.163.185.31]:36848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCKFO-0002I7-SS for 64204@debbugs.gnu.org; Thu, 22 Jun 2023 09:21:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687440069; bh=h3WHMYzkJc7T/x6GAhm+b9+9VTCOJbCL/kuEWaxQZG8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=njjLsGUq2YjWff7PxKMT2ZP3ZNJGRv0maLFDVs3aPXladse6Bf47lfnGzrdIUdeC+2cUhlXPkfafsZZXDSfjPNtaRnQ23aRPs/IZ8kGezF110GZBIsfGCT1UZKq5o6XKM6v62D5yhEYIkX8fWNPNLNDm3Mq8v1hCtat4LOG08+fCl/HxjjWLvhZ+HRfnX635V2B1p+Xue6ly48C3thlBXQyjd+4c5wHDpSez+9nGwLeEUleeigepDTFyWGr13rdxtKbG17JSVTqM+Mpp0xWC/wPJDSYsVWhy2uBBUPe1oJ57I32mOeWJZsqjZukfAAtypTl7w2WRRqdHNXEHGc1/5Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1687440069; bh=tvKxJHEMaLdz+nPfzRS1a4tNqzlvu3how+uzgXYW9Dl=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=PkstAlStFraIex/1OEfxhX5HzsSo51PBPv3tasgSMyMiWPOEijIhM/IhajpJDjc7vV8IL7Vjy12vq1+FRPUnn7YYH0G/cJnqoyaeCH33gB0+wI0AIsxyqHya8zN6Uh8DH1Rjd7moKLNpXmaXclj72SXj6BMkxf/CbnV4PzV+A55X2zTP+Rm6qhYNdNEu+2Fq60vjBrMeG0h+JtwS1x7lc+hZZSOb02I7wGw4e8Q9jVmuYJknCeU67LiXo/PwiMfBCyoSw36YE/z0xsz97HsDcgIEB23f5OIHG2KsyZvKCsarjTYr39ddfTc/5vbKTtnElzi+0TJqAb6KQXgVU35boQ== X-YMail-OSG: swGWw4QVM1kzxD2BXf7edNmaa7nZLXA_mdoeJRW93v4N3lZ71xW.I.bVK3bOgOV bjSNG_kYbImzll25KKhM6hqzdsZIh6URUMSlbk4EafOcKlAP9EwQxuSPeaOc6ebxF3mB7VNw1Y0F rglLvIsmkd4NDay4Klxpa64mGs3s8.zxyvSar2QHdjqTHkeYsXJiumWJGK70JBycXC8xp4e7muaL 1Ciwmehelx4FqOyMovcXzotuBsYcA77uxO_xYFfQeqZGhdLcbmTgAVR.ghvdlFxQM.wEyULe.GJm DhtctJdg18cJn7omoWM5FFctVEtEOI7GGF2qvThJTYcN7AFHik8fXkXZ8WarefjLsZjqlesXQNps qHaI5LAGLRJ9_BN6MNSxYWZkT8HAT5xPXEEZPujHijc1q7ZytMQypZZ7YtU.nZAKX3MrFtVYVaT1 ockti8Trm2JlDveQn2Ap1JvO6eJwaVUJymHrK.N1Caxrch67zPeeXmAhjk5XQ8.SCYOgJxp9k.4t ukJdjZHFoTbwhCIq3W6BKeatwU7sH1EBwv7r2ERawar5WqrqFzWXOhOLgp7W88AI2c5Q1aI6ATZA Exe5tN145gfpOq0Y1ktCh_wQoz783.sueWWrBazKQvcp4PsOPbsPOlsUtKVwgK8aqeQnfc4WSvgN zjuKNLCj6wMaf1av_LDJxV52tSoT59kpxa38LNoAOzgzWdXz.I5vWr7TO_qfkbtZRhl4X1dw50xF nm_4Uc_Ws5oMbw7jKnI3u4yMWNyrhcIiBUc8Zlv8jGm7u_rArg_t714hTXAyPwBJgUuaqm.ZGqYY I0EmEZxjTjxhg23rcvY7k9xNbQssXNQpxRsBv2S7n3 X-Sonic-MF: X-Sonic-ID: 8c556005-cb39-44a7-a444-427d0aadbf3d Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.ne1.yahoo.com with HTTP; Thu, 22 Jun 2023 13:21:09 +0000 Original-Received: by hermes--production-sg3-748897c457-fnrhv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 027631ff315cc9d8405e4c44ff1de3c5; Thu, 22 Jun 2023 13:21:03 +0000 (UTC) In-Reply-To: <83ttuz3dxb.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jun 2023 15:00:00 +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:263877 Archived-At: Eli Zaretskii writes: > It is fontified the way the syntax is interpreted, which is exactly > what I'm talking about. The problem is that: int $lsp; is not interpreted as an ``error'', just as some syntax that cannot be fontified. CC Mode is not in any position to determine whether or not syntax is valid.