add macro-call node

This commit is contained in:
Aleksey Kladov 2018-12-28 13:27:30 +03:00
parent dc496d0516
commit 072028e679
3 changed files with 46 additions and 2 deletions

View file

@ -7,6 +7,8 @@ use crate::{
};
pub(crate) fn highlight(db: &RootDatabase, file_id: FileId) -> Cancelable<Vec<HighlightedRange>> {
let file = db.source_file(file_id);
Ok(ra_editor::highlight(&file))
let source_file = db.source_file(file_id);
let mut res = ra_editor::highlight(&source_file);
for node in source_file.syntax().descendants() {}
Ok(res)
}