Skip to content

Commit dc61080

Browse files
committed
Fixed a bug where ScanName() would not correctly identify the BeginDictionary delimiter if the next char was a '.'
1 parent a3c77c2 commit dc61080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PdfSharp/Pdf.IO/Lexer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public Symbol ScanName()
348348
return _symbol = Symbol.Name;
349349
case '[':
350350
//TODO: Not Complete
351-
if (IsWhiteSpace(_nextChar) || IsDelimiter(_nextChar) || char.IsNumber(_nextChar) || _nextChar == '-' || PeekArrayKeyword())
351+
if (IsWhiteSpace(_nextChar) || IsDelimiter(_nextChar) || char.IsNumber(_nextChar) || _nextChar == '.' || _nextChar == '-' || PeekArrayKeyword())
352352
{
353353
return _symbol = Symbol.Name;
354354
}

0 commit comments

Comments
 (0)