From 43a72b2a6304126a67fe23a8756490b040748a5f Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 18 Nov 2012 16:17:19 +0100 Subject: [PATCH] Don't skip the \n after parsing a pragma in the lexer otherwise 2 pragmas in the row wouldn't work --- lexer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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') { -- 2.39.2