From: Wolfgang (Blub) Bumiller Date: Sun, 25 Nov 2012 17:38:04 +0000 (+0100) Subject: Allow strings to contain a backslash and a newline at the end X-Git-Tag: 0.1.9~253 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf23ed948d2d08558feaa8fbe478014e4b28c1a8;p=xonotic%2Fgmqcc.git Allow strings to contain a backslash and a newline at the end --- 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 */