Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions PdfSharpCore/Pdf.IO/Lexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ public Symbol ScanLiteralString()
{
// Octal character code.
if (ch >= '8')
ParserDiagnostics.HandleUnexpectedCharacter(ch);
break; // Since the first possible octal character is not valid,
// the backslash is ignored.

int n = ch - '0';
if (char.IsDigit(_nextChar)) // Second octal character.
Expand All @@ -521,12 +522,6 @@ public Symbol ScanLiteralString()
}
ch = (char)n;
}
else
{
//TODO
// Debug.As sert(false, "Not implemented; unknown escape character.");
ParserDiagnostics.HandleUnexpectedCharacter(ch);
}
break;
}
break;
Expand Down