diff --git a/yaml/parser.nim b/yaml/parser.nim index 4b5ce26..4900b0b 100644 --- a/yaml/parser.nim +++ b/yaml/parser.nim @@ -1095,6 +1095,7 @@ proc renderAttrs(p: YamlParser, tag: TagId, anchor: AnchorId): string = result = " !!" & tagUri[yamlTagRepositoryPrefix.len..^1] else: result = " !<" & tagUri & ">" + if anchor != yAnchorNone: result &= " &" & p.anchorName(anchor) proc display*(p: YamlParser, event: YamlStreamEvent): string {.raises: [KeyError].} =