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:10:29 +0200 Message-ID: <878rb5qwu2.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="6339"; 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:13:32 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 1qNvNT-0001SL-4T for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 15:13:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qNvLN-0002TW-9P; Mon, 24 Jul 2023 09:11:24 -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 1qNvL4-0002J8-T0 for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 09:11:03 -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 1qNvL4-0003iC-Bb for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 09:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qNvL4-0007Hn-6n for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 09:11:02 -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:11:02 +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.169020423627972 (code B ref 64818); Mon, 24 Jul 2023 13:11:02 +0000 Original-Received: (at 64818) by debbugs.gnu.org; 24 Jul 2023 13:10:36 +0000 Original-Received: from localhost ([127.0.0.1]:42134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNvKe-0007H5-5t for submit@debbugs.gnu.org; Mon, 24 Jul 2023 09:10:36 -0400 Original-Received: from out-29.mta0.migadu.com ([2001:41d0:1004:224b::1d]:40260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qNvKZ-0007Gt-Sc for 64818@debbugs.gnu.org; Mon, 24 Jul 2023 09:10:34 -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=1690204230; 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=t92cUUta/Mr2JljHSbhadxfLhX6y9aDN6zSqWK6z5wg=; b=zn64kq8Ch2HuCUMZomW9GM81nV+n+4bGSNIAi5Ig1Ga0WsfAh7NduUbd9z3ps5J0FIN0Qb Dx4MNnHTjCQiAezNwBQ0cyznFe7CB4rRpPmJ6DIzH3dMWHEKVlEKp5Kt6DVPwhOua2B3nP hHIDsDtrrMrTyP+4Jtd2m4n1IVGtE5e9cQPVLy1h7a+G4GBCt0iBSIFnABKDuolBA2faEC FO2duDy7fFFksqnxHYCUla0j1PQ73RHTBJ53u31EdhnuiVTRVtRJ/9qa/bzw3op82m9WBc rbQYorOP4rfLPuL1bHz0EMFM57BlQ7mbBjaVQNj5iQpoTmUavscejCbH9TJvNg== 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:265964 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? I'll look into it :) Theo