Skip to content

Commit

Permalink
Fix character range alternative parser optimization to include last c…
Browse files Browse the repository at this point in the history
…haracter
  • Loading branch information
Craig-J committed Jan 31, 2020
1 parent 257a74d commit a47fe9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Eto.Parse/Grammar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void OptimizeCharacterSets(IEnumerable<Parser> children)
var charRange = item as CharRangeTerminal;
if (charRange != null)
{
for (char i = charRange.Start; i < charRange.End; i++)
for (char i = charRange.Start; i <= charRange.End; i++)
{
if (charRange.Inverse)
inverse.Add(i);
Expand Down

0 comments on commit a47fe9f

Please sign in to comment.