Skip to content

Commit

Permalink
Increase Highlights highlight range to covering element
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Feb 4, 2021
1 parent 81a9ad3 commit 34d5d77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/ide/src/syntax_highlighting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub(crate) fn highlight(
}
};

let mut hl = highlights::Highlights::new(range_to_highlight);
let mut hl = highlights::Highlights::new(root.text_range());
traverse(&mut hl, &sema, &root, range_to_highlight, syntactic_name_ref_highlighting);
hl.to_vec()
}
Expand Down

0 comments on commit 34d5d77

Please sign in to comment.