From cb70ded2b2a7651d4678f3bbec54a5b829b266ba Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Tue, 18 Oct 2016 13:39:36 -0700 Subject: [PATCH] Fix token dump output --- src/main.d | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main.d b/src/main.d index 402545c..c57d793 100644 --- a/src/main.d +++ b/src/main.d @@ -194,12 +194,18 @@ else { auto tokens = getTokensForParser(bytes, config, &cache); writeln( - "text blank\tindex\tline\tcolumn\ttype\tcomment\ttrailingComment"); + "text \tblank\tindex\tline\tcolumn\ttype\tcomment\ttrailingComment"); foreach (token; tokens) { - writefln("<<%20s>>%b\t%d\t%d\t%d\t%d\t%s", token.text is null - ? str(token.type) : token.text, token.text is null, token.index, - token.line, token.column, token.type, token.comment); + writefln("<<%20s>>\t%b\t%d\t%d\t%d\t%d\t%s\t%s", + token.text is null ? str(token.type) : token.text, + token.text is null, + token.index, + token.line, + token.column, + token.type, + token.comment, + token.trailingComment); } return 0; }