Add is_tab field to chunks

Co-authored-by: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Max Brunsfeld 2023-04-18 10:56:43 -07:00 committed by Kirill Bulatov
parent cf304a0edc
commit 4f8607039c
5 changed files with 57 additions and 11 deletions

View file

@ -833,10 +833,7 @@ impl<'a> Iterator for BlockChunks<'a> {
return Some(Chunk {
text: unsafe { std::str::from_utf8_unchecked(&NEWLINES[..line_count as usize]) },
syntax_highlight_id: None,
highlight_style: None,
diagnostic_severity: None,
is_unnecessary: false,
..Default::default()
});
}