From 3db137c9fd807dbc42d1fa619e2ef17cc479c805 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 13 Nov 2017 18:39:23 +0100 Subject: [PATCH] Beautify the token list output. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- lexer/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer/main.c b/lexer/main.c index 691d54e..0cdc70b 100644 --- a/lexer/main.c +++ b/lexer/main.c @@ -237,7 +237,7 @@ int main() { wprintf(L"Scanner error with token value: %ls\n", token[tokenFound].value); exit(EXIT_FAILURE); } - if (c != WEOF) { + if (tokenType == MOT || tokenType == MOTCLE) { wprintf(L"%20s: %ls\n", tokenTypestr[tokenType], token[tokenFound].value); } else { wprintf(L"%20s\n", tokenTypestr[tokenType]); -- 2.34.1