aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-02-04 10:37:14 +0000
committerLukas Wirth <[email protected]>2021-02-04 10:37:14 +0000
commit34d5d77cfa09f4460a0851b5650f441771e7373e (patch)
tree7b606fe1f1892c4334d38c047538169544549370 /crates/ide
parent81a9ad3672d547b2f5d265766bbb6c79909fb2da (diff)
Increase Highlights highlight range to covering element
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/syntax_highlighting.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs
index a3d4e4f77..9bed329d8 100644
--- a/crates/ide/src/syntax_highlighting.rs
+++ b/crates/ide/src/syntax_highlighting.rs
@@ -72,7 +72,7 @@ pub(crate) fn highlight(
72 } 72 }
73 }; 73 };
74 74
75 let mut hl = highlights::Highlights::new(range_to_highlight); 75 let mut hl = highlights::Highlights::new(root.text_range());
76 traverse(&mut hl, &sema, &root, range_to_highlight, syntactic_name_ref_highlighting); 76 traverse(&mut hl, &sema, &root, range_to_highlight, syntactic_name_ref_highlighting);
77 hl.to_vec() 77 hl.to_vec()
78} 78}