diff options
Diffstat (limited to 'compiler/renderer.nim')
-rwxr-xr-x | compiler/renderer.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim index 8a8e1e849..cf8dd65c6 100755 --- a/compiler/renderer.nim +++ b/compiler/renderer.nim @@ -386,6 +386,7 @@ proc lsub(n: PNode): int = of nkDotExpr: result = lsons(n) + 1 of nkBind: result = lsons(n) + len("bind_") of nkBindStmt: result = lcomma(n) + len("bind_") + of nkMixinStmt: result = lcomma(n) + len("mixin_") of nkCheckedFieldExpr: result = lsub(n.sons[0]) of nkLambda: result = lsons(n) + len("proc__=_") of nkDo: result = lsons(n) + len("do__:_") @@ -1152,6 +1153,9 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) = of nkBindStmt: putWithSpace(g, tkBind, "bind") gcomma(g, n, c) + of nkMixinStmt: + putWithSpace(g, tkMixin, "mixin") + gcomma(g, n, c) of nkElifBranch: optNL(g) putWithSpace(g, tkElif, "elif") |