Skip to content

Commit efd4a1d

Browse files
committed
comments
1 parent b48f09e commit efd4a1d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/_StringProcessing/Engine/MEQuantify.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ extension Processor {
226226
&& payload.maxExtraTrips == nil)
227227

228228
// Match at least once
229+
//
230+
// NOTE: Due to newline-sequence in scalar-semantic mode advancing two
231+
// positions, we can't just have doRunEagerZeroOrMoreQuantify return the
232+
// range-end and advance the range-start ourselves. Instead, we do one
233+
// call before looping.
229234
guard let next = doQuantifyMatch(payload) else {
230235
signalFailure()
231236
return false

0 commit comments

Comments
 (0)