summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/packrat-parsers.adb3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/packrat-parsers.adb b/src/packrat-parsers.adb
index ed0f3d3..abb2736 100644
--- a/src/packrat-parsers.adb
+++ b/src/packrat-parsers.adb
@@ -170,8 +170,6 @@ package body Packrat.Parsers is
Result.Curtails.Exclude (Combo);
elsif Result.Curtails.Contains (Combo) then
Result.Curtails.Replace (Combo, Left);
- else
- Result.Curtails.Insert (Combo, Left);
end if;
else
Result.Curtails.Exclude (Combo);
@@ -345,6 +343,7 @@ package body Packrat.Parsers is
Salt, Temp : Combinator_Result;
Adjust : Result_Sets.Set;
begin
+ Salt.Curtails := From.Curtails;
for R of From.Results loop
Temp := Next (Input, Context, R.Finish + 1);
Adjust.Clear;