Tree-sitter-based highlighting for Kakoune
- create a map of byte offsets to Kakoune ranges once, to avoid having to iterate the content for every highlight event - create a direct lookup for faces from the token index passed by the highlighter event, rather than performing a string map lookup each time - minimize allocations by pushing only a single string with sufficient capacity, rather than building small strings |
||
---|---|---|
benches | ||
rc | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
CHANGELOG.adoc | ||
LICENSE | ||
README.adoc | ||
test.sh |
Kak Highlight
Tree-sitter-based highlighting for Kakoune.