From 94c8d53a03c437d1601fa75aecb5b84bb694711f Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 23 Sep 2020 10:41:23 +0200 Subject: [PATCH] 'koch temp' bugfix --- compiler/docgen.nim | 4 ++-- koch.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/docgen.nim b/compiler/docgen.nim index ff3a540be3..c2ce12e502 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -992,7 +992,7 @@ proc documentEffect(cache: IdentCache; n, x: PNode, effectType: TSpecialWord, id # set the type so that the following analysis doesn't screw up: effects[i].typ = real[i].typ - result = newTreeI(nkExprColonExpr, n.info, + result = newTreeI(nkExprColonExpr, n.info, newIdentNode(getIdent(cache, specialWords[effectType]), n.info), effects) proc documentWriteEffect(cache: IdentCache; n: PNode; flag: TSymFlag; pragmaName: string): PNode = @@ -1005,7 +1005,7 @@ proc documentWriteEffect(cache: IdentCache; n: PNode; flag: TSymFlag; pragmaName effects.add params[i] if effects.len > 0: - result = newTreeI(nkExprColonExpr, n.info, + result = newTreeI(nkExprColonExpr, n.info, newIdentNode(getIdent(cache, pragmaName), n.info), effects) proc documentRaises*(cache: IdentCache; n: PNode) = diff --git a/koch.nim b/koch.nim index 966ff932e3..1880045711 100644 --- a/koch.nim +++ b/koch.nim @@ -481,7 +481,7 @@ proc temp(args: string) = var (bootArgs, programArgs) = splitArgs(args) if "doc" notin programArgs and "threads" notin programArgs and - "js" notin programArgs: + "js" notin programArgs and "rst2html" notin programArgs: bootArgs.add " -d:leanCompiler" let nimexec = findNim().quoteShell() exec(nimexec & " c -d:debug --debugger:native -d:nimBetterRun " & bootArgs & " " & (d / "compiler" / "nim"), 125)