Add more colors to python.

This commit is contained in:
Tom Alexander
2025-02-22 18:26:33 -05:00
parent 04952895cf
commit c67eb32774
4 changed files with 50 additions and 12 deletions

View File

@@ -226,7 +226,15 @@ fn highlight_python<L>(lines: &[L]) -> Result<Vec<ISrcLine>, CustomError>
where
L: Borrow<str>,
{
let highlight_names = ["comment"];
let highlight_names = [
"comment",
"function.builtin",
"keyword",
"property",
"string",
"type",
"variable",
];
let language = tree_sitter_python::LANGUAGE.into();
let mut config = HighlightConfiguration::new(
language,