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

#297 in Text editors

Download history 2305/week @ 2024-09-28 1735/week @ 2024-10-05 1764/week @ 2024-10-12 2087/week @ 2024-10-19 2188/week @ 2024-10-26 1839/week @ 2024-11-02 2409/week @ 2024-11-09 2123/week @ 2024-11-16 2187/week @ 2024-11-23 3028/week @ 2024-11-30 2866/week @ 2024-12-07 4565/week @ 2024-12-14 2563/week @ 2024-12-21 3914/week @ 2024-12-28 3848/week @ 2025-01-04 3943/week @ 2025-01-11

14,957 downloads per month
Used in 18 crates (15 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