summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2019-07-05 10:08:52 +0200
committernarimiran <narimiran@disroot.org>2019-07-05 10:08:52 +0200
commit2c0c0e772c37402a3ac92458c942bd4a432fd559 (patch)
tree13493ba94021e03735bb0520b8b06a441f52d21a
parent96a19ea1b441f5e1682b2f04bac188003ceea6dd (diff)
downloadNim-2c0c0e772c37402a3ac92458c942bd4a432fd559.tar.gz
nimpretty: nicer debugging [ci skip]
-rw-r--r--compiler/layouter.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/layouter.nim b/compiler/layouter.nim
index d8e1b7b0f..24efc7142 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)