tlaplus-community / tree-sitter-tlaplus

A tree-sitter grammar for TLA⁺ and PlusCal
MIT License
57 stars 10 forks source link

Rewrite scanner in C #93

Closed clason closed 8 months ago

clason commented 8 months ago

Just a small heads-up: tree-sitter has deprecated C++ for external scanners due to portability issues (especially with WASM, which will become a central part of the parser distribution strategy); see https://tree-sitter.github.io/tree-sitter/creating-parsers#external-scanners. Accordingly, nvim-treesitter will drop support for such parsers in 1.0, too.

In the upcoming release (0.22.0), tree-sitter provides a new array.h header for use in scanners, so C++ is no longer necessary just for <vector>. Feel free to reach out on https://matrix.to/#/#tree-sitter-chat:matrix.org if you need help with the rewrite!