ext/drafter/ext/snowcrash/src/ResourceParser.h in redsnow-0.4.0 vs ext/drafter/ext/snowcrash/src/ResourceParser.h in redsnow-0.4.1
- old
+ new
@@ -103,11 +103,19 @@
return SectionProcessor<Action>::handleDeprecatedHeaders(node, siblings, pd, headers);
}
case AttributesSectionType:
{
+ // Set up named type context
+ if (!out.node.name.empty()) {
+ pd.namedTypeContext = out.node.name;
+ }
+
ParseResultRef<Attributes> attributes(out.report, out.node.attributes, out.sourceMap.attributes);
MarkdownNodeIterator cur = AttributesParser::parse(node, siblings, pd, attributes);
+
+ // Clear named type context
+ pd.namedTypeContext.clear();
if (!out.node.name.empty()) {
if (SectionProcessor<DataStructureGroup>::isNamedTypeDuplicate(pd.blueprint, out.node.name)) {