Skip to content

Commit

Permalink
Fixed a bug where ScanName() would not correctly identify the BeginDi…
Browse files Browse the repository at this point in the history
…ctionary delimiter if the next char was a '.'
  • Loading branch information
mlaukala committed Apr 2, 2019
1 parent a3c77c2 commit dc61080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PdfSharp/Pdf.IO/Lexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ public Symbol ScanName()
return _symbol = Symbol.Name;
case '[':
//TODO: Not Complete
if (IsWhiteSpace(_nextChar) || IsDelimiter(_nextChar) || char.IsNumber(_nextChar) || _nextChar == '-' || PeekArrayKeyword())
if (IsWhiteSpace(_nextChar) || IsDelimiter(_nextChar) || char.IsNumber(_nextChar) || _nextChar == '.' || _nextChar == '-' || PeekArrayKeyword())
{
return _symbol = Symbol.Name;
}
Expand Down

0 comments on commit dc61080

Please sign in to comment.