]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Fix a very nasty bug in the lexer's handling of comments
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 8f1bcb8a46eb3eb5bd823c91267f5bae01765950..61fe11f56ce61fbfc1d1bcc2e93c1ac7e7db62ca 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -604,6 +604,7 @@ static int lex_skipwhite(lex_file *lex)
                             }
                             break;
                         }
+                        lex_ungetch(lex, ch);
                     }
                     if (lex->flags.preprocessing) {
                         lex_tokench(lex, ' '); /* ch); */