Make HighlightConfiguration::configure use into iterator instead of a Vec<String>
This commit is contained in:
parent
12207c1f70
commit
9feca80b08
4 changed files with 10 additions and 6 deletions
|
|
@ -112,7 +112,7 @@ pub extern "C" fn ts_highlighter_add_language(
|
|||
let mut config =
|
||||
HighlightConfiguration::new(language, highlight_query, injection_query, locals_query)
|
||||
.or(Err(ErrorCode::InvalidQuery))?;
|
||||
config.configure(&this.highlight_names);
|
||||
config.configure(&this.highlight_names.as_slice());
|
||||
this.languages.insert(scope_name, (injection_regex, config));
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue