This commit is contained in:
Edgar Luque 2021-06-17 09:17:13 +02:00
parent 652dec950c
commit cd9307b597
No known key found for this signature in database
GPG key ID: 8731E6C0166EAA85

View file

@ -293,8 +293,7 @@ impl HighlightConfiguration {
///
/// When highlighting, results are returned as `Highlight` values, which contain the index
/// of the matched highlight this list of highlight names.
pub fn configure(&mut self, recognized_names: &[impl AsRef<str>])
{
pub fn configure(&mut self, recognized_names: &[impl AsRef<str>]) {
let mut capture_parts = Vec::new();
self.highlight_indices.clear();
self.highlight_indices