disable escape sequences for #line and #error
This commit is contained in:
parent
f333272eb5
commit
13444545a9
5 changed files with 10 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue