X-Git-Url: https://git.piment-noir.org/?p=TP_AL_C.git;a=blobdiff_plain;f=lexer%2Fmain.c;h=0cdc70b9da3f066fa591869584e4a0fae7af8cd6;hp=691d54eef5162acaa4f8c5ee5514e0f02d1834bb;hb=3db137c9fd807dbc42d1fa619e2ef17cc479c805;hpb=b5cd8f86ef2ff365b3d848da283ffd888712d1fa 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]);