Incorporate syntax highlighting into symbol outline view

Still need to figure out how to style the fuzzy match characters
now that there's syntax highlighting. Right now, they are
underlined in red.
This commit is contained in:
Max Brunsfeld 2022-01-13 18:09:54 -08:00
parent 7913a1ea22
commit adeb7e6864
7 changed files with 369 additions and 124 deletions

View file

@ -13,8 +13,8 @@ pub struct OutlineItem<T> {
pub depth: usize,
pub range: Range<T>,
pub text: String,
pub name_ranges: Box<[Range<u32>]>,
pub text_runs: Vec<(usize, Option<HighlightStyle>)>,
pub name_ranges: Vec<Range<u32>>,
pub highlight_ranges: Vec<(Range<usize>, HighlightStyle)>,
}
impl<T> Outline<T> {