Rust's FFI to C should allow integration of the tree-sitter parser.
Also, I think that tree-sitter should fit well with Xi's performance goals
Also, tree-sitter's API should be avaliable to Xi-Plugin providers, so more features (than just syntax-highlighting) could be added independently by plugin-contributors.
https://github.com/tree-sitter/tree-sitter
(btw tree-sitter is also mentioned in #424)
Tree sitter now has official rust bindings.
we definitely wouldn't put tree-sitter in core, but I could very easily imagine using tree-sitter as an alternative to syntect. It's other features are also interesting; it's sort of sitting between just being a syntax highlighter and being something closer to a language server. Would be curious to see some performance details. :)
Most helpful comment
we definitely wouldn't put tree-sitter in core, but I could very easily imagine using tree-sitter as an alternative to syntect. It's other features are also interesting; it's sort of sitting between just being a syntax highlighter and being something closer to a language server. Would be curious to see some performance details. :)