implements/fixes #195
This commit is contained in:
parent
759b3201ad
commit
ea4435544e
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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, ".}")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue