Reputation: 41
I use Emacs (Spacemacs version) to write CSharp programs; I used the following code to enable and install the related Treesit function configuration.
(use-package treesit :config (setq treesit-language-source-alist '((c-sharp "https://github.com/tree-sitter/tree-sitter-c-sharp"))) (setq treesit-font-lock-level 4) (add-to-list 'major-mode-remap-alist '(csharp-mode . csharp-ts-mode)))
After using it, the following error occurred.
Error during redisplay: (jit-lock-function 1) signaled (treesit-query-error "Node type error at" 461 "["using" "namespace" "class" "if" "else" "throw" "new" "for" "return" "await" "struct" "enum" "switch" "case" "default" "typeof" "try" "catch" "finally" "break" "foreach" "in" "yield" "get" "set" "when" "as" "out" "is" "while" "continue" "this" "ref" "goto" "interface" "from" "where" "select" "lock" "base" "record" "init" "with" "let" "static" "var" "do" "public" "private" "readonly" "unmanaged"] @font-lock-keyword-face (modifier) @font-lock-keyword-face (this_expression) @font-lock-keyword-face" "Debug the query with `treesit-query-validate'")
Upvotes: 1
Views: 32