mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 02:12:11 +00:00
nimpretty: nicer debugging [ci skip]
(cherry picked from commit 2c0c0e772c)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user