mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-10 20:29:05 +00:00
Rename HighlightedChunksIter
to HighlightedChunks
This commit is contained in:
parent
4ada5e0666
commit
491932b691
1 changed files with 4 additions and 4 deletions
|
@ -778,7 +778,7 @@ impl Buffer {
|
|||
},
|
||||
);
|
||||
|
||||
HighlightedChunksIter {
|
||||
HighlightedChunks {
|
||||
captures: captures.peekable(),
|
||||
chunks,
|
||||
stack: Default::default(),
|
||||
|
@ -2177,7 +2177,7 @@ impl<'a, F: Fn(&FragmentSummary) -> bool> Iterator for Edits<'a, F> {
|
|||
}
|
||||
}
|
||||
|
||||
pub struct HighlightedChunksIter<'a, T: tree_sitter::TextProvider<'a>> {
|
||||
pub struct HighlightedChunks<'a, T: tree_sitter::TextProvider<'a>> {
|
||||
chunks: Chunks<'a>,
|
||||
captures: iter::Peekable<tree_sitter::QueryCaptures<'a, 'a, T>>,
|
||||
stack: Vec<(usize, usize)>,
|
||||
|
@ -2186,7 +2186,7 @@ pub struct HighlightedChunksIter<'a, T: tree_sitter::TextProvider<'a>> {
|
|||
buffer: &'a Buffer,
|
||||
}
|
||||
|
||||
impl<'a, T: tree_sitter::TextProvider<'a>> Iterator for HighlightedChunksIter<'a, T> {
|
||||
impl<'a, T: tree_sitter::TextProvider<'a>> Iterator for HighlightedChunks<'a, T> {
|
||||
type Item = (&'a str, Option<usize>);
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
|
@ -2234,7 +2234,7 @@ impl<'a, T: tree_sitter::TextProvider<'a>> Iterator for HighlightedChunksIter<'a
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, T: tree_sitter::TextProvider<'a>> Drop for HighlightedChunksIter<'a, T> {
|
||||
impl<'a, T: tree_sitter::TextProvider<'a>> Drop for HighlightedChunks<'a, T> {
|
||||
fn drop(&mut self) {
|
||||
let query_cursor = self.query_cursor.take().unwrap();
|
||||
let mut buffer_cursor = self.buffer.query_cursor.lock();
|
||||
|
|
Loading…
Reference in a new issue