tomlin7 / biscuit

Aesthetic, lightweight code editor with extension support
https://tomlin7.github.io/biscuit
MIT License
189 stars 27 forks source link

Adding tree-sitter support for advanced highlighting #398

Open tomlin7 opened 1 month ago

tomlin7 commented 1 month ago

Feature

Currently, Pygments handles the syntax highlighting for over 500+ file types. While it's a good system already, there are performance issues with this while editing large files. Treesitter provides a better highlighter and can help in this situation. One drawback is having to add support for each language individually.

Using biscuit extensions to add support for individual languages will solve this issue. Provide support for some of the most popular ones built-in. And have pygments as a fallback highlighter if suitable (keeping the executable size at minimum).

tomlin7 commented 1 month ago

@RINO-GAELICO I say this one is hard to tackle as it requires good knowledge about both tree-sitter, biscuit's editor component and language features, so this is not a good first issue.