Added theme to language
This commit is contained in:
parent
6f99d59d38
commit
988f388165
6 changed files with 35 additions and 22 deletions
|
@ -324,7 +324,7 @@ mod tests {
|
|||
("number".into(), Color::yellow().into()),
|
||||
("property".into(), Color::white().into()),
|
||||
]);
|
||||
language.set_theme(&theme);
|
||||
language.set_theme(theme.into());
|
||||
|
||||
let grammar = language.grammar().unwrap();
|
||||
let highlight_function = grammar.highlight_id_for_name("function").unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue