This commit is contained in:
metagn
2023-05-01 13:08:47 +03:00
parent a4f8475bf0
commit 065d907c62

View File

@@ -267,7 +267,7 @@ proc emitTok*(em: var Emitter; L: TLexer; tok: TToken) =
if not em.endsInWhite: wr(" ")
wr(tok.ident.s)
template isUnary(tok): bool =
p.tok.spacing == {tsLeading}
tok.spacing == {tsLeading}
if not isUnary(tok) or em.lastTok in {tkOpr, tkDotDot}:
wr(" ")