From: Wolfgang (Blub) Bumiller Date: Sun, 18 Nov 2012 15:17:19 +0000 (+0100) Subject: Don't skip the \n after parsing a pragma in the lexer otherwise 2 pragmas in the... X-Git-Tag: 0.1.9~404^2~13 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=43a72b2a6304126a67fe23a8756490b040748a5f Don't skip the \n after parsing a pragma in the lexer otherwise 2 pragmas in the row wouldn't work --- diff --git a/lexer.c b/lexer.c index 872df8c..82f7527 100644 --- 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') { - if (lex_try_pragma(lex)) { - ch = lex_getch(lex); + if (lex_try_pragma(lex)) continue; - } } if (lex->flags.preprocessing) { if (ch == '\n') {