aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-12-28 10:27:30 +0000
committerAleksey Kladov <[email protected]>2018-12-28 10:27:30 +0000
commit072028e67996162f5a9da14cfd59ed64de5e8729 (patch)
tree6883b7d82c15653f6ad76f66bdbec8cdb5c5e8d8 /crates/ra_analysis/src
parentdc496d05160f9693a4e48977b7f7a3fe2689ac51 (diff)
add macro-call node
Diffstat (limited to 'crates/ra_analysis/src')
-rw-r--r--crates/ra_analysis/src/syntax_highlighting.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/ra_analysis/src/syntax_highlighting.rs b/crates/ra_analysis/src/syntax_highlighting.rs
index 65409beb2..0bf19eea0 100644
--- a/crates/ra_analysis/src/syntax_highlighting.rs
+++ b/crates/ra_analysis/src/syntax_highlighting.rs
@@ -7,6 +7,8 @@ use crate::{
7}; 7};
8 8
9pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> { 9pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> {
10 let file = db.source_file(file_id); 10 let source_file = db.source_file(file_id);
11 Ok(ra_editor::highlight(&file)) 11 let mut res = ra_editor::highlight(&source_file);
12 for node in source_file.syntax().descendants() {}
13 Ok(res)
12} 14}