aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/syntax_highlighting.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting.rs')
-rw-r--r--crates/ra_ide/src/syntax_highlighting.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting.rs b/crates/ra_ide/src/syntax_highlighting.rs
index c10e15db8..ebdf05127 100644
--- a/crates/ra_ide/src/syntax_highlighting.rs
+++ b/crates/ra_ide/src/syntax_highlighting.rs
@@ -9,7 +9,6 @@ use ra_ide_db::{
9 defs::{classify_name, classify_name_ref, Definition, NameClass, NameRefClass}, 9 defs::{classify_name, classify_name_ref, Definition, NameClass, NameRefClass},
10 RootDatabase, 10 RootDatabase,
11}; 11};
12use ra_prof::profile;
13use ra_syntax::{ 12use ra_syntax::{
14 ast::{self, HasFormatSpecifier}, 13 ast::{self, HasFormatSpecifier},
15 AstNode, AstToken, Direction, NodeOrToken, SyntaxElement, 14 AstNode, AstToken, Direction, NodeOrToken, SyntaxElement,
@@ -46,7 +45,7 @@ pub(crate) fn highlight(
46 range_to_highlight: Option<TextRange>, 45 range_to_highlight: Option<TextRange>,
47 syntactic_name_ref_highlighting: bool, 46 syntactic_name_ref_highlighting: bool,
48) -> Vec<HighlightedRange> { 47) -> Vec<HighlightedRange> {
49 let _p = profile("highlight"); 48 let _p = profile::span("highlight");
50 let sema = Semantics::new(db); 49 let sema = Semantics::new(db);
51 50
52 // Determine the root based on the given range. 51 // Determine the root based on the given range.