From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Theodor Thornhill via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64818: 30.0.50; c++-ts-mode highlight does not work Date: Mon, 24 Jul 2023 15:26:36 +0200 Message-ID: <87ila9sann.fsf@thornhill.no> References: <83sf9dsewi.fsf@gnu.org> Reply-To: Theodor Thornhill Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40260"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64818@debbugs.gnu.org To: Eli Zaretskii , Wang Diancheng , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 24 15:27:11 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 1qNvag-000ACp-P2 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 15:27:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNvad-0003eH-QE; Mon, 24 Jul 2023 09:27: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 1qNvaY-0003dk-8I for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 09:27:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qNvaY-0007fV-0f for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 09:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNvaX-0007gy-RY for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 09:27:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Theodor Thornhill Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jul 2023 13:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64818 X-GNU-PR-Package: emacs Original-Received: via spool by 64818-submit@debbugs.gnu.org id=B64818.169020520329536 (code B ref 64818); Mon, 24 Jul 2023 13:27:01 +0000 Original-Received: (at 64818) by debbugs.gnu.org; 24 Jul 2023 13:26:43 +0000 Original-Received: from localhost ([127.0.0.1]:42172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNvaF-0007gK-J1 for submit@debbugs.gnu.org; Mon, 24 Jul 2023 09:26:43 -0400 Original-Received: from out-30.mta1.migadu.com ([95.215.58.30]:46004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNvaD-0007gB-3D for 64818@debbugs.gnu.org; Mon, 24 Jul 2023 09:26:42 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thornhill.no; s=key1; t=1690205199; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HLj8ecsyfVo1Oq4g+2l8uWjuKb2ugxiqMRqCjr5MRYU=; b=elyt9EghdXXyhBJBRceFbmKhCThwwcT1ZORjDP+Ii30FwbpobI4/bbKppJahQabdNB2UvV l2Osg7jwTmU4p8sQznuEdYCEY65R3TlOpuNEgzAni+WZsrf34HtBZE5Ho9Ae3hmbvTty76 n6yvHzdxGBV18rz9uVvnbp1BejUGRCFlMh4YVINH5O5KvNKE1kiZIVOkKef9EXkagK8nQj k23uKMRij/bWMNUIDorceg8CHSkYgdbwGVPZbWqDHfEFqY/sQD5eLL6gEDBI+qpPRAcy1k bvC/9VXdMjW9eJYoSlTeG9SMi9H3tZZ80O0/GJeSN/Hhk898sPLHxLC+EJYFAQ== In-Reply-To: <83sf9dsewi.fsf@gnu.org> X-Migadu-Flow: FLOW_OUT 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:265968 Archived-At: Eli Zaretskii writes: >> From: Wang Diancheng >> Date: Mon, 24 Jul 2023 12:49:06 +0800 >>=20 >> I use the latest tree-sitter and tree-sitter modules. >> Only preprocessor instructions and comments are highlighted, please see = attached >> screenshot. BTW c-ts-mode highlight is OK. >>=20 >> Following are values of treesit-font-lock-feature-list and >> treesit-font-lock-level: >>=20 >> treesit-font-lock-feature-list is a variable defined in =E2=80=98treesit= .el=E2=80=99. >>=20 >> Its value is >> ((comment definition) (keyword preprocessor string type) >> (assignment constant escape-sequence label literal) >> (bracket delimiter error function operator property variable)) >> Local in buffer sql_select.cc; global value is nil >>=20 >> treesit-font-lock-level is a variable defined in =E2=80=98treesit.el=E2= =80=99. >>=20 >> Its value is 3 > > Thanks. > > Yuan, Theo: can you please look into this? I can confirm the above > behavior, and I also see it in the very first pretest 29.0.90. So > either some change broke c++-ts-mode before April, or maybe the latest > changes in the C++ grammar library did that. treesit-explore-mode > seems to show that the code is parsed correctly, so why aren't > fontifications working? With the version of the grammar on my system everything worked perfectly, but I updated the grammar, and now I can reproduce. So it seems something upstream broke it. I'll bisect tree-sitter-cpp and figure out whats breaking it. Thanks, Theo