Quote schema comments

This commit is contained in:
Emery Hemingway 2021-09-08 11:20:23 +02:00
parent efbf9af7ba
commit 098f067ffb
1 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ proc generateConstProcs(result: var seq[PNode]; name: string; def: SchemaNode) =
newEmpty(),
newEmpty(),
stmts)
constProc.comment = $def
constProc.comment = "``" & $def & "``"
result.add constProc
else: discard
@ -448,7 +448,7 @@ proc generateNimFile*(scm: Schema; path: string) =
var name = name
name[0] = name[0].toUpperAscii
let t = nimTypeOf(scm, knownTypes, def, name)
t.comment = $def
t.comment = "``" & $def & "``"
case def.kind
of snkAtom:
knownTypes[name] = nkTypeDef.newNode.add(