tree-sitter-c-sharp
tree-sitter-c-sharp copied to clipboard
C# Grammar for tree-sitter
This is a tracking issue to see the progress on validating which contextual keywords can be used as identifiers. All contextual keywords are listed below from https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/#contextual-keywords. Tree sitter is...
`(a, var b) = (1, 2);` parses as ``` (compilation_unit [0, 0] - [0, 20] (global_statement [0, 0] - [0, 20] (expression_statement [0, 0] - [0, 20] (assignment_expression [0, 0]...
The below sample produces a parsing error: ```C# int x = 1; var a = $$"""" aaa { """ {{x}} """ } bbb """"; System.Console.WriteLine(a); ``` I think the only...
Type declarations such as: ```cs class MyClass1; class MyClass2(); interface IMyInterface1; interface IMyInterface2(); enum MyEnum1; enum MyEnum2(); ``` show up as errors in the syntax tree. The README says that...
Hi, Since the large overhaul to the parser, I have noticed that when using Treesitter queries in Neovim, that the range output in block scoped namespaces, include the entire contents...
This line errors out when loading the TagsConfiguration: https://github.com/tree-sitter/tree-sitter-c-sharp/blob/31a64b28292aac6adf44071e449fa03fb80eaf4e/queries/tags.scm#L23 Version: 0.21.3