[backport] fix nimpretty removing space before pragma
This commit is contained in:
parent
e0cd52365c
commit
f804245087
1 changed files with 2 additions and 1 deletions
|
|
@ -499,7 +499,8 @@ proc emitTok*(em: var Emitter; L: TLexer; tok: TToken) =
|
||||||
rememberSplit(splitComma)
|
rememberSplit(splitComma)
|
||||||
wrSpace em
|
wrSpace em
|
||||||
of openPars:
|
of openPars:
|
||||||
if tok.strongSpaceA > 0 and not em.endsInWhite and not em.wasExportMarker:
|
if tok.strongSpaceA > 0 and not em.endsInWhite and
|
||||||
|
(not em.wasExportMarker or tok.tokType == tkCurlyDotLe):
|
||||||
wrSpace em
|
wrSpace em
|
||||||
wr(em, TokTypeToStr[tok.tokType], ltSomeParLe)
|
wr(em, TokTypeToStr[tok.tokType], ltSomeParLe)
|
||||||
rememberSplit(splitParLe)
|
rememberSplit(splitParLe)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue