Fix printing of schema symbols

This commit is contained in:
Emery Hemingway 2021-09-06 18:34:57 +02:00
parent 23d34d1468
commit df53ff0d41
1 changed files with 4 additions and 1 deletions

View File

@ -114,8 +114,11 @@ proc `$`*(n: SchemaNode): string =
result.add "#!" & $n.embed
of snkLiteral:
case n.value.kind
of pkBoolean, pkFloat, pkDouble, pkSignedInteger, pkString, pkByteString, pkSymbol:
of pkBoolean, pkFloat, pkDouble, pkSignedInteger, pkString, pkByteString:
result.add $n.value
of pkSymbol:
result.add '='
result.add n.value.symbol
else:
result.add "<<lit>" & $n.value & ">"
of snkSequenceOf: