Overview of tree-sitter-c-sharp
mastertree-sitter-c-sharp is a C# grammar for the tree-sitter incremental parsing library. It is based on the Roslyn grammar but has been modified to:
- Handle
#if,#else,#elif, and#endifpreprocessor blocks. - Support syntax highlighting and parsing of code fragments.
- Simplify the output tree structure.
- Reduce parser state count and complexity.
- Address differences between parsing technologies and specific grammar bugs.
- Align with tree-sitter conventions.