From e3c12446877334d5124bce81225d8476487afb4a Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 23 Nov 2012 21:47:00 +0100 Subject: [PATCH] preserve newlines in preprocessed multiline comments --- lexer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 */