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:
parent
7913a1ea22
commit
adeb7e6864
7 changed files with 369 additions and 124 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue