diff options
author | Araq <rumpf_a@web.de> | 2013-04-20 01:59:39 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-04-20 01:59:39 +0200 |
commit | 2796121dd7410af45a2fbaf43cc7577799fb3157 (patch) | |
tree | c07d68dbaf2a6916aef0a03d6d898ab73c496d31 /compiler/renderer.nim | |
parent | 04216fc7500e6c74f41c8f5aa743fb43a1ee65da (diff) | |
download | Nim-2796121dd7410af45a2fbaf43cc7577799fb3157.tar.gz |
next steps for the new parser/grammar
Diffstat (limited to 'compiler/renderer.nim')
-rw-r--r-- | compiler/renderer.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim index b4ef52100..1333e40c4 100644 --- a/compiler/renderer.nim +++ b/compiler/renderer.nim @@ -81,13 +81,13 @@ proc addTok(g: var TSrcGen, kind: TTokType, s: string) = proc addPendingNL(g: var TSrcGen) = if g.pendingNL >= 0: - addTok(g, tkInd, "\n" & repeatChar(g.pendingNL)) + addTok(g, tkSpaces, "\n" & repeatChar(g.pendingNL)) g.lineLen = g.pendingNL g.pendingNL = - 1 proc putNL(g: var TSrcGen, indent: int) = if g.pendingNL >= 0: addPendingNL(g) - else: addTok(g, tkInd, "\n") + else: addTok(g, tkSpaces, "\n") g.pendingNL = indent g.lineLen = indent |