GNU bug report logs - #73369
31.0.50; csharp-ts-mode does not have any syntax highlighting apart

Previous Next

Package: emacs;

Reported by: <admin <at> sonictk.com>

Date: Thu, 19 Sep 2024 20:05:02 UTC

Severity: normal

Found in version 31.0.50

Full log


Message #11 received at 73369 <at> debbugs.gnu.org (full text, mbox):

From: Yuan Fu <casouri <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 73369 <at> debbugs.gnu.org, Theodor Thornhill <theo <at> thornhill.no>,
 admin <at> sonictk.com
Subject: Re: bug#73369: 31.0.50; csharp-ts-mode does not have any syntax
 highlighting apart
Date: Fri, 20 Sep 2024 01:25:31 -0700
[Message part 1 (text/plain, inline)]

> On Sep 19, 2024, at 11:07 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
>> From: <admin <at> sonictk.com>
>> Date: Thu, 19 Sep 2024 12:33:13 -0700
>> 
>> Normal `csharp-mode` works fine to display C# files with syntax
>> highlighting - if you use `csharp-ts-mode`, however, all syntax
>> highlighting is lost.
> 
> Do you see any error messages in *Messages* when you use
> csharp-ts-mode?
> 
> Theo and Yuan, it sounds like the C# grammar made some incompatible
> change?  Can we fix this ASAP (on the release branch), please?

Tree-sitter-csharp devs changed so many things, it’s crazy. Anyway, here’s a patch that works with the latest grammar. Theo, can you use a test C# file and see if the new rules cover everything the old rules cover?

Yuan

[csharp-ts-mode.patch (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]


This bug report was last modified 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.