feat: add syntax-aware diff backgrounds and diagonal gap shading

This commit is contained in:
2026-10-11 01:08:45 +02:00
parent 2f595ca4ca
commit db5d417a17
7 changed files with 529 additions and 77 deletions
+5
View File
@@ -156,6 +156,11 @@ impl SyntaxCache {
self.error.as_deref()
}
#[cfg(test)]
pub(crate) fn parse_counts(&self) -> (usize, usize) {
(self.parses, self.injection_parses)
}
fn highlight(
&mut self,
syntax: &'static LanguageSpec,