Skip to content

Commit c715e79

Browse files
committed
Use lazy map in splitToSingleLineRanges
1 parent 82c93b4 commit c715e79

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SourceKitLSP/Swift/SyntaxHighlightingTokenParser.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ extension Range where Bound == Position {
224224

225225
return lines
226226
.enumerated()
227+
.lazy
227228
.map { (i, content) in
228229
let start = Position(
229230
line: lowerBound.line + i,

0 commit comments

Comments
 (0)