@@ -436,7 +436,7 @@ impl Syntax {
439− .update(source, source, &ChangeSet::new(&source))
439+ .update(source, source, &ChangeSet::new(source))
440 .unwrap();
440 .unwrap();
@@ -735,9 +735,7 @@ impl Syntax {
735 .peekable();
735 .peekable();
737 // If there's no captures, skip the layer
737 // If there's no captures, skip the layer
738− if captures.peek().is_none() {
738+ captures.peek()?;
742 Some(HighlightIterLayer {
740 Some(HighlightIterLayer {
743 highlight_end_stack: Vec::new(),
741 highlight_end_stack: Vec::new(),