diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-06-17 14:15:42 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-06-17 14:15:42 +0200 |
commit | c70706f4bd672487293b82fd5b1a0ddfbb3a6a78 (patch) | |
tree | a460774af0fbcbbe84d25d9d058454c199a0569d | |
parent | 798a8bd45c6631864716566e0681590879015aeb (diff) | |
download | Nim-c70706f4bd672487293b82fd5b1a0ddfbb3a6a78.tar.gz |
nimpretty: fixes pragma rendering
-rw-r--r-- | compiler/parser.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim index 9a9fed0cf..649f9d506 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 '.}'") |