]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Update doc/specification.tex
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index e1cff47ef24bfd19b2ff7c27a14d1b450f846724..42b21a1a6cd7de46bd45aa21b227cc412a4fbdec 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -1485,6 +1485,6 @@ int lex_do(lex_file *lex)
         return (lex->tok.ttype = ch);
     }
 
-    lexerror(lex, "unknown token: %c", lex->tok);
+    lexerror(lex, "unknown token: `%s`", lex->tok.value);
     return (lex->tok.ttype = TOKEN_ERROR);
 }