Allow inner module attributes
This commit is contained in:
parent
dcc93559a2
commit
c8ff91fda2
@ -256,6 +256,11 @@ impl<'a> Item<'a> {
|
|||||||
let content = SortableContent::within_node(text, node, Some(start), "body");
|
let content = SortableContent::within_node(text, node, Some(start), "body");
|
||||||
Some(Self::Impl { name, trt, content })
|
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" => {
|
"macro_definition" => {
|
||||||
let name = get_field_str("name").unwrap();
|
let name = get_field_str("name").unwrap();
|
||||||
Some(Self::Macro { name, content })
|
Some(Self::Macro { name, content })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user