9 unstable releases (4 breaking)

new 0.23.1 Nov 11, 2024
0.23.0 Sep 1, 2024
0.21.3 Jul 8, 2024
0.21.2 May 7, 2024
0.16.1 Oct 28, 2020

#158 in Text editors

Download history 1756/week @ 2024-07-24 1535/week @ 2024-07-31 2981/week @ 2024-08-07 1975/week @ 2024-08-14 1973/week @ 2024-08-21 1839/week @ 2024-08-28 2209/week @ 2024-09-04 1923/week @ 2024-09-11 2277/week @ 2024-09-18 2309/week @ 2024-09-25 2080/week @ 2024-10-02 1711/week @ 2024-10-09 1930/week @ 2024-10-16 2096/week @ 2024-10-23 2201/week @ 2024-10-30 1902/week @ 2024-11-06

8,395 downloads per month
Used in 15 crates (13 directly)

MIT license

35MB
1M SLoC

C 1M SLoC // 0.0% comments JavaScript 2K SLoC // 0.0% comments Scheme 181 SLoC // 0.1% comments Rust 33 SLoC // 0.1% comments

tree-sitter-c-sharp

CI discord matrix crates npm pypi

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

Status

Comprehensive supports C# 1 through 13.0 with the following exception:

  • async, var and await cannot be used as identifiers everywhere they are valid

References

Dependencies