renderer.nim: fixes a long standing bug that kept triple string literals from being rendered properly

This commit is contained in:
Araq
2017-12-17 13:15:19 +01:00
parent 35133d97ef
commit e06d76669a

View File

@@ -860,7 +860,7 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
a: TContext
if n.comment != nil: pushCom(g, n)
case n.kind # atoms:
of nkTripleStrLit: putRawStr(g, tkTripleStrLit, n.strVal)
of nkTripleStrLit: put(g, tkTripleStrLit, atom(g, n))
of nkEmpty: discard
of nkType: put(g, tkInvalid, atom(g, n))
of nkSym, nkIdent: gident(g, n)