From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: J M Newsgroups: gmane.emacs.bugs Subject: bug#65113: Emacs-29 and master csharp-mode with broken treesit Date: Sun, 6 Aug 2023 16:03:45 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Apple-Mail=_028EF548-C22C-4D8D-838C-1A9D59CDDE47" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29299"; mail-complaints-to="usenet@ciao.gmane.io" To: 65113@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 06 17:05:17 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 1qSfJl-0007N4-Ej for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Aug 2023 17:05:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSfJY-0005OM-I1; Sun, 06 Aug 2023 11:05: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 1qSfJW-0005OD-Vl for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 11:05: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 1qSfJW-0007dA-KA for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 11:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSfJW-0001xX-Ey for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 11:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: J M Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Aug 2023 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65113 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16913342587473 (code B ref -1); Sun, 06 Aug 2023 15:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Aug 2023 15:04:18 +0000 Original-Received: from localhost ([127.0.0.1]:59792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSfIo-0001wT-GV for submit@debbugs.gnu.org; Sun, 06 Aug 2023 11:04:18 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:34750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSfIl-0001wF-Ip for submit@debbugs.gnu.org; Sun, 06 Aug 2023 11:04:17 -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 1qSfIf-0005Kp-Ss for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 11:04:10 -0400 Original-Received: from mx2.tbm.email ([51.38.32.223] helo=mx2.tbmatrix.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSfId-0007VZ-Gu for bug-gnu-emacs@gnu.org; Sun, 06 Aug 2023 11:04:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tbm.email; s=mail; t=1691334236; bh=mqYUDuylhOtY3KFrqm+I1i5BO4nR8zfqedsGAVXZHK4=; h=From:Subject:To; b=XwxYHBU2oz4PNBU41lPcXba+xwffNZS+YAkwKGIbcIAcQzM1IpJVu41k34/GkI/n2 MFY6ATZzMyDJ1cM0MQTPwe9Chcs+2JQitpeQinDY3bzDuwnkYDzjutuwRDzRB1jazl v9PGwaK1n2syKZtZtkX4U1heaRD3nhx9/TAYmBtP3XCduGQ4P44Ru2vozhl+UQrruN MteFiZW6CcTZ8F2MQ5UT7wsuD6OVOJQx0tm3XACwS0tXky7SJutWT3TLm3+3BdCV5v pEp7jTAARDyPpFu9XO3s+gwWBv6cfqwWolKo1F0qMUEo2Ghgg3KGvfzFCoUSKa7sUF I1cc7y5MH1cQbRVy0uXbDuRBt60g38GLdgwhadfbGi/KiNJVRwIlM9eXJb1bbay4gD mYm4yueKljKpMIq1Qrl39QTdvaHcfnJKLXzIrhAeCCppYeYnTeKV/SFgM8j7uTsI5n BfTI3NZCHR4pLKknJRcFRx1s5/MyMvK2+j7dCtUERDB6wTg0ajAiiiXtWTSlwxt97F mU8IMFqqYpQ2YkaPb7H351Cqqo92/+M0vlkBXnbGLcnMGAJqOBG6ZjF4L9xs50dv53 Vgvg2RsO09OD1Zr7MuLIAgWOCC2qIbiRCIePJK09UqBGocGqV9gIH05SVY7axGjNrp Eh2GT823WSAUqotR9lWceHgM= Received-SPF: pass client-ip=51.38.32.223; envelope-from=jean@tbm.email; helo=mx2.tbmatrix.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:266859 Archived-At: --Apple-Mail=_028EF548-C22C-4D8D-838C-1A9D59CDDE47 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi all Treesit is broken for csharp-mode in the latest version in master and = emacs-29 and therefore does not provide syntax highlighting. =EF=BF=BC The latest grammar repository = (https://github.com/tree-sitter/tree-sitter-c-sharp) has removed the = keyword void_keyword. Please see attached the patch to resolve the issue. Thanks Jean M= --Apple-Mail=_028EF548-C22C-4D8D-838C-1A9D59CDDE47 Content-Type: multipart/mixed; boundary="Apple-Mail=_9B14C545-D3E2-43FF-B028-473752B55604" --Apple-Mail=_9B14C545-D3E2-43FF-B028-473752B55604 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Hi all

Treesit is broken for csharp-mode in the latest version in master and emacs-29 and therefore does not provide syntax highlighting. 
--Apple-Mail=_9B14C545-D3E2-43FF-B028-473752B55604 Content-Disposition: attachment; filename=treesit_void_keyword_removed_from_grammar.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="treesit_void_keyword_removed_from_grammar.patch" Content-Transfer-Encoding: 7bit diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el index 00587a8a515..1a753cb309b 100644 --- a/lisp/progmodes/csharp-mode.el +++ b/lisp/progmodes/csharp-mode.el @@ -844,7 +844,7 @@ csharp-ts-mode--font-lock-settings (constructor_declaration name: (_) @font-lock-type-face) - (method_declaration type: [(identifier) (void_keyword)] @font-lock-type-face) + (method_declaration type: [(identifier) (predefined_type)] @font-lock-type-face) (method_declaration type: (generic_name (identifier) @font-lock-type-face)) (method_declaration name: (_) @font-lock-function-name-face) --Apple-Mail=_9B14C545-D3E2-43FF-B028-473752B55604 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii

The latest grammar repository (https://github.com/tree-sitter/tree-sitter-c-sharp) has removed the keyword void_keyword.

Please see attached the patch to resolve the issue.

Thanks
Jean M
--Apple-Mail=_9B14C545-D3E2-43FF-B028-473752B55604-- --Apple-Mail=_028EF548-C22C-4D8D-838C-1A9D59CDDE47--