6 releases

new 0.3.0 Apr 19, 2025
0.2.3 Jun 22, 2024
0.2.2 Apr 2, 2024
0.1.0 Feb 21, 2024

#2781 in Parser implementations

Download history 1/week @ 2024-12-21 4/week @ 2025-01-04 4/week @ 2025-01-11

327 downloads per month

MIT license

24MB
723K SLoC

C 723K SLoC // 0.0% comments JavaScript 106 SLoC // 0.1% comments Rust 36 SLoC // 0.1% comments

tree-sitter-slang

CI discord matrix npm crates pypi

This is a extension of tree-sitter-cpp and tree-sitter-hlsl to support the syntax of slang.

Limitations/TODOs:

  • ambiguity between HLSL semantics and Slang type hints

Dependencies

~2.8–4MB
~75K SLoC