diff --git a/source/lex.h b/source/lex.h index 7576dffc77..258c5b2ca5 100644 --- a/source/lex.h +++ b/source/lex.h @@ -380,7 +380,7 @@ auto expand_string_literal( // Now we're on the first character of the string itself for ( ; - pos < length && (text[pos] != '"' || text[pos-1] == '\\'); + pos < length && (text[pos] != '"' || (text[pos-1] == '\\' && pos>=2 && text[pos-2] != '\\')); ++pos ) {