summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-22 23:09:25 +0200
committerAraq <rumpf_a@web.de>2012-09-22 23:09:25 +0200
commitea4435544e16b6fa32efaded59acc255aeae104a (patch)
tree8a526ca1c1c23d500d87cbb77194142cd44b640e /compiler
parent759b3201ad7f60ee865f9c0cec57d6ce63c74b73 (diff)
downloadNim-ea4435544e16b6fa32efaded59acc255aeae104a.tar.gz
implements/fixes #195
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/docgen.nim3
-rwxr-xr-xcompiler/renderer.nim3
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index 6fe1d03b1..0fc5e03cf 100755
--- a/compiler/docgen.nim
+++ b/compiler/docgen.nim
@@ -184,8 +184,7 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
   var kind = tkEof
   var comm = genRecComment(d, n)  # call this here for the side-effect!
   var r: TSrcGen
-  initTokRender(r, n, {renderNoPragmas, renderNoBody, renderNoComments, 
-                       renderDocComments})
+  initTokRender(r, n, {renderNoBody, renderNoComments, renderDocComments})
   while true: 
     getNextTok(r, kind, literal)
     case kind
diff --git a/compiler/renderer.nim b/compiler/renderer.nim
index cf8dd65c6..5199e234d 100755
--- a/compiler/renderer.nim
+++ b/compiler/renderer.nim
@@ -1115,7 +1115,8 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
     putWithSpace(g, tkContinue, "continue")
     gsub(g, n.sons[0])
   of nkPragma: 
-    if not (renderNoPragmas in g.flags): 
+    if renderNoPragmas notin g.flags:
+      put(g, tkSpaces, Space)
       put(g, tkCurlyDotLe, "{.")
       gcomma(g, n, emptyContext)
       put(g, tkCurlyDotRi, ".}")