mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
Allow strings to contain a backslash and a newline at the end
This commit is contained in:
parent
2c0a9d78df
commit
bf23ed948d
1 changed files with 1 additions and 0 deletions
1
lexer.c
1
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 */
|
||||
|
|
Loading…
Reference in a new issue