implements/fixes #195

This commit is contained in:
Araq 2012-09-22 23:09:25 +02:00
commit ea4435544e
2 changed files with 3 additions and 3 deletions

View file

@ -184,8 +184,7 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
var kind = tkEof var kind = tkEof
var comm = genRecComment(d, n) # call this here for the side-effect! var comm = genRecComment(d, n) # call this here for the side-effect!
var r: TSrcGen var r: TSrcGen
initTokRender(r, n, {renderNoPragmas, renderNoBody, renderNoComments, initTokRender(r, n, {renderNoBody, renderNoComments, renderDocComments})
renderDocComments})
while true: while true:
getNextTok(r, kind, literal) getNextTok(r, kind, literal)
case kind case kind

View file

@ -1115,7 +1115,8 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
putWithSpace(g, tkContinue, "continue") putWithSpace(g, tkContinue, "continue")
gsub(g, n.sons[0]) gsub(g, n.sons[0])
of nkPragma: of nkPragma:
if not (renderNoPragmas in g.flags): if renderNoPragmas notin g.flags:
put(g, tkSpaces, Space)
put(g, tkCurlyDotLe, "{.") put(g, tkCurlyDotLe, "{.")
gcomma(g, n, emptyContext) gcomma(g, n, emptyContext)
put(g, tkCurlyDotRi, ".}") put(g, tkCurlyDotRi, ".}")