From 88896194bdc511ca0d7fc9c9f9ea20ec4a0bde92 Mon Sep 17 00:00:00 2001 From: narimiran Date: Fri, 5 Jul 2019 10:08:52 +0200 Subject: [PATCH] nimpretty: nicer debugging [ci skip] (cherry picked from commit 2c0c0e772c37402a3ac92458c942bd4a432fd559) --- compiler/layouter.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/layouter.nim b/compiler/layouter.nim index d8e1b7b0f9..24efc71423 100644 --- a/compiler/layouter.nim +++ b/compiler/layouter.nim @@ -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)