Skip to content

Commit

Permalink
Merge pull request #248 from ocaml/ps/rr/refactor_perl___raise__exit_…
Browse files Browse the repository at this point in the history
…_without_backtrace

refactor(perl): raise [Exit] without backtrace
  • Loading branch information
vouillon authored Apr 15, 2024
2 parents db6b123 + 6099fd5 commit 7f7b085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/perl.ml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ let parse multiline dollar_endonly dotall ungreedy s =
let len = String.length s' in
try
for j = 0 to len - 1 do
try if s'.[j] <> s.[!i + j] then raise Exit
with _ -> raise Exit
try if s'.[j] <> s.[!i + j] then raise_notrace Exit
with _ -> raise_notrace Exit
done;
i := !i + len;
true
Expand Down

0 comments on commit 7f7b085

Please sign in to comment.