nimpretty: fixes pragma rendering

This commit is contained in:
Andreas Rumpf
2018-06-17 14:15:42 +02:00
parent 798a8bd45c
commit c70706f4bd

View File

@@ -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 '.}'")