X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=lexer.c;h=25cf4e180a1aa4a842ba6affad71d3d5561937c4;hp=82f7527beb52612b57816f5f0dabd5e27272759e;hb=41235108c49a03e5577a104d6e44a2f6b5356f6f;hpb=43a72b2a6304126a67fe23a8756490b040748a5f diff --git a/lexer.c b/lexer.c index 82f7527..25cf4e1 100644 --- a/lexer.c +++ b/lexer.c @@ -421,7 +421,7 @@ static bool lex_try_pragma(lex_file *lex) goto unroll; lex->line = line; - while (ch != '\n') + while (ch != '\n' && ch != EOF) ch = lex_getch(lex); return true;