X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=lex.c;h=9296158fd196cd5390e47fb60d7e1d096a936e7f;hp=48d01c49db4adee40308f55d5a11172e166e7436;hb=a440c1410bad2a06b6a9385094a3dae0142f9395;hpb=45cbef1b8f50648a066efd9d48e24a04b64975eb diff --git a/lex.c b/lex.c index 48d01c4..9296158 100644 --- a/lex.c +++ b/lex.c @@ -249,7 +249,7 @@ static int lex_skipcmt(struct lex_file *file) { lex_addch(ch, file); while ((ch = lex_getch(file)) != '*') { if (ch == EOF) - return error(ERROR_LEX, "malformatted comment", " "); + return error(ERROR_LEX, "malformatted comment at line %d", file->line); else lex_addch(ch, file); }