tree-sitter-c-sharp
C# Grammar for tree-sitter.
C# Grammar for tree-sitter.
To install this package, run one of the following:
C# grammar for tree-sitter based upon the Roslyn grammar with changes in order to: - Deal with differences between the parsing technologies - Work around some bugs in that grammar - Handle #if, #else, #elif, #endif blocks - Support syntax highlighting/parsing of fragments - Simplify the output tree - Reduce parser state count and complexity - Be in-line with tree-sitter's convention where applicable
Summary
C# Grammar for tree-sitter.
Last Updated
Apr 14, 2026 at 21:17
License
MIT
Supported Platforms
GitHub Repository
https://github.com/tree-sitter/tree-sitter-c-sharp