From bf23ed948d2d08558feaa8fbe478014e4b28c1a8 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 25 Nov 2012 18:38:04 +0100 Subject: [PATCH] Allow strings to contain a backslash and a newline at the end --- lexer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lexer.c b/lexer.c index 17af7b6..c7fec44 100644 --- a/lexer.c +++ b/lexer.c @@ -770,6 +770,7 @@ static int GMQCC_WARN lex_finish_string(lex_file *lex, int quote) case 't': ch = '\t'; break; case 'f': ch = '\f'; break; case 'v': ch = '\v'; break; + case '\n': ch = '\n'; break; default: lexwarn(lex, WARN_UNKNOWN_CONTROL_SEQUENCE, "unrecognized control sequence: \\%c", ch); /* so we just add the character plus backslash no matter what it actually is */ -- 2.39.2