From 6800d15872a220ed80ce967c046489da5f95d053 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sat, 31 Aug 2013 16:52:46 -0400 Subject: [PATCH] Always print the char the lexer fails on for a token. --- lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer.c b/lexer.c index 5177471..7642d26 100644 --- a/lexer.c +++ b/lexer.c @@ -1519,6 +1519,6 @@ int lex_do(lex_file *lex) return (lex->tok.ttype = ch); } - lexerror(lex, "unknown token: `%s`", lex->tok.value); + lexerror(lex, "unknown token: `%c`", ch); return (lex->tok.ttype = TOKEN_ERROR); } -- 2.39.2