CMD + K

tree-sitter-c-sharp

Community

C# Grammar for tree-sitter.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::tree-sitter-c-sharp

Usage Tracking

0.23.5
0.23.1
2 / 8 versions selected
Downloads (Last 6 months): 0

Description

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

About

Summary

C# Grammar for tree-sitter.

Last Updated

Apr 14, 2026 at 21:17

License

MIT

Supported Platforms

linux-aarch64
macOS-arm64
macOS-64
win-64
linux-64
linux-ppc64le