disable escape sequences for #line and #error

This commit is contained in:
Jeff Bolz 2020-03-09 21:09:18 -05:00
parent f333272eb5
commit 13444545a9
5 changed files with 10 additions and 4 deletions

View file

@ -1030,7 +1030,7 @@ int TPpContext::tStringInput::scan(TPpToken* ppToken)
ch = getch();
while (ch != '"' && ch != '\n' && ch != EndOfInput) {
if (len < MaxTokenLength) {
if (ch == '\\') {
if (ch == '\\' && !pp->disableEscapeSequences) {
int nextCh = getch();
switch (nextCh) {
case '\'': ch = 0x27; break;