all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: J M <jean@tbm.email>
To: 65113@debbugs.gnu.org
Subject: bug#65113: Emacs-29 and master csharp-mode with broken treesit
Date: Sun, 6 Aug 2023 16:03:45 +0100	[thread overview]
Message-ID: <C5CF3A73-BA73-44FE-8920-BF6BB3CFC2FB@tbm.email> (raw)

[-- Attachment #1: Type: text/plain, Size: 341 bytes --]

Hi all

Treesit is broken for csharp-mode in the latest version in master and emacs-29 and therefore does not provide syntax highlighting. 

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

[-- Attachment #2.1: Type: text/html, Size: 369 bytes --]

[-- Attachment #2.2: treesit_void_keyword_removed_from_grammar.patch --]
[-- Type: application/octet-stream, Size: 629 bytes --]

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)
 

[-- Attachment #2.3: Type: text/html, Size: 554 bytes --]

             reply	other threads:[~2023-08-06 15:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-06 15:03 J M [this message]
2023-08-06 15:36 ` bug#65113: Emacs-29 and master csharp-mode with broken treesit Eli Zaretskii
2023-08-07  5:46   ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-10  9:05     ` Eli Zaretskii
2023-08-10 22:42       ` J M
2023-08-11  5:57         ` Eli Zaretskii
2023-08-12  7:27         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C5CF3A73-BA73-44FE-8920-BF6BB3CFC2FB@tbm.email \
    --to=jean@tbm.email \
    --cc=65113@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.