Not getting any syntax highlighting
sonictk opened this issue · 1 comments
sonictk commented
GNU Emacs 31.0.50 (build 3, x86_64-w64-mingw32) of 2024-07-31
I built and installed tree-sitter-c-sharp
from source, and while I can definitely see the mode working, I have no syntax highlighting at all.
(using_directive using (identifier) ;)
(using_directive using
(qualified_name
qualifier: (qualified_name qualifier: (identifier) . name: (identifier))
. name: (identifier))
;)
(using_directive using
(qualified_name qualifier: (identifier) . name: (identifier))
;)
(class_declaration
(modifier public)
class name: (identifier)
(base_list : (identifier))
body:
(declaration_list {
(constructor_declaration
(modifier public)
name: (identifier)
parameters:
(parameter_list (
(parameter type: (identifier) name: (identifier))
))
(constructor_initializer : base
(argument_list (
(argument (identifier))
)))
body:
(block { (comment)
(expression_statement
(assignment_expression left: (identifier) operator: =
right: (boolean_literal false))
;)
(expression_statement
(assignment_expression left: (identifier) operator: =
right: (boolean_literal true))
;)
}))
})))
I can see the syntax tree, though. Comments are given highlighting, but nothing else. This is even when using vanilla Emacs with no other modes enabled. Is this expected? I'm not the most familiar with tree-sitter, but other languages seem to work OOTB, so if someone could point me in the right direction as to what I'm doing wrong that would be appreciated.
ObserverOfTime commented
This is not an issue with the parser. Ask other emacs users for help.