]> de.git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Don't skip the \n after parsing a pragma in the lexer otherwise 2 pragmas in the...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 18 Nov 2012 15:17:19 +0000 (16:17 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 18 Nov 2012 15:17:19 +0000 (16:17 +0100)
lexer.c

diff --git a/lexer.c b/lexer.c
index 872df8cb3b4ce8832268fe4f7afb8f284c27052c..82f7527beb52612b57816f5f0dabd5e27272759e 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -498,10 +498,8 @@ static int lex_skipwhite(lex_file *lex)
         ch = lex_getch(lex);
         while (ch != EOF && isspace(ch)) {
             if (ch == '\n') {
         ch = lex_getch(lex);
         while (ch != EOF && isspace(ch)) {
             if (ch == '\n') {
-                if (lex_try_pragma(lex)) {
-                    ch = lex_getch(lex);
+                if (lex_try_pragma(lex))
                     continue;
                     continue;
-                }
             }
             if (lex->flags.preprocessing) {
                 if (ch == '\n') {
             }
             if (lex->flags.preprocessing) {
                 if (ch == '\n') {