Added theme to language

This commit is contained in:
Isaac Clayton 2022-07-08 18:11:28 +02:00
parent 6f99d59d38
commit 988f388165
6 changed files with 35 additions and 22 deletions

View file

@ -315,7 +315,7 @@ mod tests {
("property".into(), Color::white().into()),
]);
language.set_theme(&theme);
language.set_theme(theme.into());
let highlight_function = grammar.highlight_id_for_name("function").unwrap();
let highlight_type = grammar.highlight_id_for_name("type").unwrap();
@ -394,7 +394,7 @@ mod tests {
("property".into(), Color::white().into()),
]);
language.set_theme(&theme);
language.set_theme(theme.into());
let highlight_function = grammar.highlight_id_for_name("function").unwrap();
let highlight_type = grammar.highlight_id_for_name("type").unwrap();