all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#65113: Emacs-29 and master csharp-mode with broken treesit
@ 2023-08-06 15:03 J M
  2023-08-06 15:36 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: J M @ 2023-08-06 15:03 UTC (permalink / raw)
  To: 65113

[-- 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 --]

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-12  7:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-06 15:03 bug#65113: Emacs-29 and master csharp-mode with broken treesit J M
2023-08-06 15:36 ` 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

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.