From c8ff91fda2b5742172b97e1cdbd58ff3c0060ef3 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Thu, 17 Oct 2024 14:28:03 +1100 Subject: [PATCH] Allow inner module attributes --- src/main.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.rs b/src/main.rs index 9e163cd..fb2dad6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 })