From c70706f4bd672487293b82fd5b1a0ddfbb3a6a78 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 17 Jun 2018 14:15:42 +0200 Subject: [PATCH] nimpretty: fixes pragma rendering --- compiler/parser.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/parser.nim b/compiler/parser.nim index 9a9fed0cfd..649f9d5066 100644 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -922,7 +922,7 @@ proc parsePragma(p: var TParser): PNode = optPar(p) if p.tok.tokType in {tkCurlyDotRi, tkCurlyRi}: when defined(nimpretty2): - curlyRiWasPragma(p.em) + if p.tok.tokType == tkCurlyRi: curlyRiWasPragma(p.em) getTok(p) else: parMessage(p, "expected '.}'")