tree-sitter-c-sharp icon indicating copy to clipboard operation
tree-sitter-c-sharp copied to clipboard

C# Grammar for tree-sitter

Results 37 tree-sitter-c-sharp issues
Sort by recently updated
recently updated
newest added

…is inside a using statement. Instead of being parsed as invocation_expression it is being parsed as variable_declaration because of tuple_pattern.

I'm testing some parsing with big projects and in two instances I think I found the same parsing error. It also reproduces in the TreeSitter playground for csharp. Simplified issue:...

The below code reports parsing errors in the recursive patterns `R(E.A)`, `R(E.A or E.B)`, `(E.A)`: ```C# void M(R expr) { var x = expr is R(E.A) v0; var y =...

bug
help wanted

``` public class C { public float foo => 1; public float bar => 2; } ``` Both of these give the following error: (ERROR (variable_declaration type: (predefined_type) (variable_declarator name:...

While the following malformed code `using System; class Program { static void Main() { Console.WriteLine(\"Hello, World); } }` works fine in the playground (ie the error occurs much lower in...

The below two `is` expressions produce different parse trees. The former is correctly parsed as `is_expression` and latter is incorrectly parsed as `is_pattern_expression`. ```C# var x = y is int;...

The problem is that leading `#` is never captured into any node. I am trying to work on C# indent query for neovim. It calculates indent by first node on...

Invalid `#pragma` preprocessor directives produce warnings. The compiler is able to parse (and ignore) them. This is not the case currently with the tree-sitter grammar. For example the below produces...

Here is a screenshot from my neovim, comparing c-sharp highlight with c++ highlight ![image](https://user-images.githubusercontent.com/13493742/198920582-c5a4c22b-e8b6-46c9-9522-28c845a5e6e4.png) I have two issues with c-sharp's highlight 1. local variable and member variable are the same...

help wanted

I started receiving the below warning on pushes: ``` remote: warning: See http://git.io/iEPt8g for more information. remote: warning: File src/parser.c is 50.90 MB; this is larger than GitHub's recommended maximum...