Add more colors to python.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user