From: Wolfgang (Blub) Bumiller Date: Fri, 23 Nov 2012 20:47:00 +0000 (+0100) Subject: preserve newlines in preprocessed multiline comments X-Git-Tag: 0.1.9~299 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e3c12446877334d5124bce81225d8476487afb4a;p=xonotic%2Fgmqcc.git preserve newlines in preprocessed multiline comments --- diff --git a/lexer.c b/lexer.c index 61fe11f..ced0133 100644 --- a/lexer.c +++ b/lexer.c @@ -607,7 +607,10 @@ static int lex_skipwhite(lex_file *lex) lex_ungetch(lex, ch); } if (lex->flags.preprocessing) { - lex_tokench(lex, ' '); /* ch); */ + if (ch == '\n') + lex_tokench(lex, '\n'); + else + lex_tokench(lex, ' '); /* ch); */ } } ch = ' '; /* cause TRUE in the isspace check */