fix bug with shadowing 'finishIdx' value, when we still wanted access to both the previous and the new 'finishIdx'

This commit is contained in:
2025-09-29 21:21:06 +01:00
parent df78e20cb7
commit 64c16a7c25

View File

@@ -259,20 +259,20 @@ struct
, startIdx , startIdx
, finishIdx , finishIdx
) )
| VALID finishIdx => | VALID foundIdx =>
let let
val acc = PersistentVector.append (startIdx, finishIdx, acc) val acc = PersistentVector.append (startIdx, foundIdx, acc)
in in
loop loop
( strIdx + 1 ( foundIdx + 1
, hd , hd
, tl , tl
, prevStrings , prevStrings
, origNfa , origNfa
, origNfa , origNfa
, acc , acc
, absIdx + 1 , foundIdx + 1
, absIdx + 1 , foundIdx + 1
, finishIdx , finishIdx
) )
end end