|
|
@ -462,12 +462,11 @@ impl Syntax {
|
|
|
|
let mut queue = VecDeque::new();
|
|
|
|
let mut queue = VecDeque::new();
|
|
|
|
queue.push_back(self.root);
|
|
|
|
queue.push_back(self.root);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let scopes = self.loader.scopes.load();
|
|
|
|
let injection_callback = |language: &str| {
|
|
|
|
let injection_callback = |language: &str| {
|
|
|
|
self.loader
|
|
|
|
self.loader
|
|
|
|
.language_configuration_for_injection_string(language)
|
|
|
|
.language_configuration_for_injection_string(language)
|
|
|
|
.and_then(|language_config| {
|
|
|
|
.and_then(|language_config| language_config.highlight_config(&scopes))
|
|
|
|
language_config.highlight_config(&self.loader.scopes.load())
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Convert the changeset into tree sitter edits.
|
|
|
|
// Convert the changeset into tree sitter edits.
|
|
|
|