diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs index 83517accc2..69d84a3222 100644 --- a/crates/language/src/buffer.rs +++ b/crates/language/src/buffer.rs @@ -3661,7 +3661,7 @@ impl BufferSnapshot { let mut annotation_row_ranges = annotation_row_ranges.into_iter().peekable(); for item in items { while let Some(last_end) = item_ends_stack.last().copied() { - if last_end < item.range.end { + if last_end <= item.range.end { item_ends_stack.pop(); } else { break;