Assign more colors.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user