9 unstable releases (4 breaking)

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

#11 in Text editors

Download history 2289/week @ 2024-11-21 2665/week @ 2024-11-28 2843/week @ 2024-12-05 4014/week @ 2024-12-12 3093/week @ 2024-12-19 3378/week @ 2024-12-26 4027/week @ 2025-01-02 4384/week @ 2025-01-09 6092/week @ 2025-01-16 8845/week @ 2025-01-23 11683/week @ 2025-01-30 13480/week @ 2025-02-06 10895/week @ 2025-02-13 12381/week @ 2025-02-20 12389/week @ 2025-02-27 14371/week @ 2025-03-06

52,685 downloads per month
Used in 25 crates (18 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