Skip to content

Commit

Permalink
Merge pull request #41 from Craig-J/master
Browse files Browse the repository at this point in the history
Fix character range to include last character
  • Loading branch information
cwensley authored Jun 11, 2020
2 parents a8bf951 + a47fe9f commit 3056546
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 @@ -288,7 +288,7 @@ void OptimizeCharacterSets()
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 3056546

Please sign in to comment.