mirror of https://github.com/status-im/NimYAML.git
Added anchor name to display()
This commit is contained in:
parent
c581f1acc2
commit
8b4f781d41
|
@ -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].} =
|
||||
|
|
Loading…
Reference in New Issue