mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
add macro-call node
This commit is contained in:
parent
dc496d0516
commit
072028e679
3 changed files with 46 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue