Xi-editor: Add tree-sitter for syntax-highlighting, indentation, block-selection...

Created on 11 Jul 2018  路  2Comments  路  Source: xi-editor/xi-editor

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)

feature request plugins

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. :)

All 2 comments

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. :)

Was this page helpful?
0 / 5 - 0 ratings