Allow inner module attributes

This commit is contained in:
Jip J. Dekker 2024-10-17 14:28:03 +11:00
parent dcc93559a2
commit c8ff91fda2
No known key found for this signature in database

View File

@ -256,6 +256,11 @@ impl<'a> Item<'a> {
let content = SortableContent::within_node(text, node, Some(start), "body");
Some(Self::Impl { name, trt, content })
}
"inner_attribute_item" => {
// Should be at the top (treat like inner doc, to keep it in the chosen
// order compared to the module documentation).
Some(Self::InnerDoc(content))
}
"macro_definition" => {
let name = get_field_str("name").unwrap();
Some(Self::Macro { name, content })