How to reproduce this bug

1. emacs -Q a.cs
2. You get an error. File mode specification error: (void-function treesit-font-lock-rules)

I use d47e05219f963c28be3b018f31d232aa8eeb200f revision

On Thu, Nov 24, 2022 at 12:20 PM Shohei YOSHIDA <syohex@gmail.com> wrote:
Load treesit for using its functions
---
 lisp/progmodes/csharp-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/progmodes/csharp-mode.el b/lisp/progmodes/csharp-mode.el
index 23d7b05d50..c507de94e0 100644
--- a/lisp/progmodes/csharp-mode.el
+++ b/lisp/progmodes/csharp-mode.el
@@ -27,6 +27,7 @@
 (require 'compile)
 (require 'cc-mode)
 (require 'cc-langs)
+(require 'treesit)

 (eval-when-compile
   (require 'cc-fonts))
--
2.37.2






--
Shohei YOSHIDA(syohex@gmail.com)