We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc8f86d + d7f9a15 commit 63ab523Copy full SHA for 63ab523
PdfSharpCore/Pdf.IO/Lexer.cs
@@ -500,7 +500,8 @@ public Symbol ScanLiteralString()
500
{
501
// Octal character code.
502
if (ch >= '8')
503
- ParserDiagnostics.HandleUnexpectedCharacter(ch);
+ break; // Since the first possible octal character is not valid,
504
+ // the backslash is ignored.
505
506
int n = ch - '0';
507
if (char.IsDigit(_nextChar)) // Second octal character.
@@ -521,12 +522,6 @@ public Symbol ScanLiteralString()
521
522
}
523
ch = (char)n;
524
- else
525
- {
526
- //TODO
527
- // Debug.As sert(false, "Not implemented; unknown escape character.");
528
529
- }
530
break;
531
532
0 commit comments