nimpretty: nicer debugging [ci skip]

(cherry picked from commit 2c0c0e772c)
This commit is contained in:
narimiran
2019-07-05 10:08:52 +02:00
parent 5689003410
commit 88896194bd

View File

@@ -146,7 +146,7 @@ proc closeEmitter*(em: var Emitter) =
var i = 0
while i <= em.tokens.high:
when defined(debug):
echo "i-th token ", em.kinds[i], " ", em.tokens[i]
echo (token: em.tokens[i], kind: em.kinds[i])
case em.kinds[i]
of ltBeginSection:
maxLhs = computeMax(em, lineBegin)