diff --git a/Eto.Parse/Grammar.cs b/Eto.Parse/Grammar.cs index 1214422..7cbe468 100644 --- a/Eto.Parse/Grammar.cs +++ b/Eto.Parse/Grammar.cs @@ -217,7 +217,7 @@ void OptimizeCharacterSets(IEnumerable 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);