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

#162 in Text editors

Download history 2969/week @ 2024-08-08 2083/week @ 2024-08-15 1856/week @ 2024-08-22 2081/week @ 2024-08-29 2094/week @ 2024-09-05 1935/week @ 2024-09-12 2355/week @ 2024-09-19 2305/week @ 2024-09-26 1936/week @ 2024-10-03 1633/week @ 2024-10-10 2075/week @ 2024-10-17 2109/week @ 2024-10-24 2103/week @ 2024-10-31 2102/week @ 2024-11-07 2244/week @ 2024-11-14 1913/week @ 2024-11-21

8,734 downloads per month
Used in 16 crates (14 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