]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Importing a tiny README file
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 82f7527beb52612b57816f5f0dabd5e27272759e..25cf4e180a1aa4a842ba6affad71d3d5561937c4 100644 (file)
--- 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;