Don't skip the \n after parsing a pragma in the lexer otherwise 2 pragmas in the row wouldn't work

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-18 16:17:19 +01:00
parent a5dbfacf2f
commit 43a72b2a63

View file

@ -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') {