C# Grammar for tree-sitter
320
stars
576
commits
JavaScript
primary language
Jul 20, 2026
updated
C# grammar for tree-sitter based upon the Roslyn grammar with changes in order to:
#if, #else, #elif, #endif blocksComprehensive supports C# 1 through 14.0 with the following exceptions:
async, var and await cannot be used as identifiers everywhere they are valid#:property, #:package, #:sdk, #:project) are not yet recognized(top 30 of 36)
JavaScript
45.2%
C#
35.2%
C
16.8%
Tree-sitter Query
2.7%
C# Grammar for tree-sitter
320
stars
576
commits
JavaScript
primary language
Jul 20, 2026
updated
C# grammar for tree-sitter based upon the Roslyn grammar with changes in order to:
#if, #else, #elif, #endif blocksComprehensive supports C# 1 through 14.0 with the following exceptions:
async, var and await cannot be used as identifiers everywhere they are valid#:property, #:package, #:sdk, #:project) are not yet recognized(top 30 of 36)
JavaScript
45.2%
C#
35.2%
C
16.8%
Tree-sitter Query
2.7%