sharkdp/bat

[Performance] Use `tree-sitter` to provide syntax highlighting ?

Open

#3366 opened on Aug 3, 2025

View on GitHub
 (15 comments) (14 reactions) (0 assignees)Rust (58,889 stars) (1,557 forks)batch import
feature-requesthelp wantedneeds-worksyntax-highlighting

Description

Hello,

I notice bat command is very slow, maybe we can use tree-sitter to provide syntax highlight, tree-sitter is very fast.

https://github.com/tree-sitter

Contributor guide