sharkdp/bat

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

Open

#3,366 opened on Aug 3, 2025

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

Repository metrics

Stars
 (58,889 stars)
PR merge metrics
 (Avg merge 16d 6h) (11 merged PRs in 30d)

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