Assign more colors.

This commit is contained in:
Tom Alexander
2025-02-22 16:46:47 -05:00
parent 57eb1b81ec
commit 3245e830d2
2 changed files with 18 additions and 3 deletions

View File

@@ -137,7 +137,12 @@ fn highlight_nix<L>(lines: &[L]) -> Result<Vec<ISrcLine>, CustomError>
where
L: Borrow<str>,
{
let highlight_names = ["comment", "keyword"];
let highlight_names = [
"comment", "keyword", "property",
"string",
// "string.special.path",
// "string.special.uri",
];
// Need 1 highlighter per thread
let mut highlighter = Highlighter::new();
let language = tree_sitter_nix::LANGUAGE.into();