biscuit icon indicating copy to clipboard operation
biscuit copied to clipboard

Adding tree-sitter support for advanced highlighting

Open tomlin7 opened this issue 1 year ago • 1 comments

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 avatar Oct 08 '24 16:10 tomlin7

@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.

tomlin7 avatar Oct 10 '24 08:10 tomlin7