show macros in file structure
This commit is contained in:
@@ -142,6 +142,13 @@ fn structure_node(node: &SyntaxNode) -> Option<StructureNode> {
|
||||
};
|
||||
Some(node)
|
||||
})
|
||||
.visit(|mc: &ast::MacroCall| {
|
||||
let first_token = mc.syntax().first_token().unwrap();
|
||||
if first_token.text().as_str() != "macro_rules" {
|
||||
return None;
|
||||
}
|
||||
decl(mc)
|
||||
})
|
||||
.accept(node)?
|
||||
}
|
||||
|
||||
@@ -177,6 +184,10 @@ impl E {}
|
||||
|
||||
impl fmt::Debug for E {}
|
||||
|
||||
macro_rules! mc {
|
||||
() => {}
|
||||
}
|
||||
|
||||
#[deprecated]
|
||||
fn obsolete() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user