Skip to content

Commit 88b928e

Browse files
committed
Lint Errors (darn whitespace)
1 parent 3e21e21 commit 88b928e

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Sources/CodeEditSourceEditor/Enums/CaptureModifiers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public struct CaptureModifierSet: OptionSet, Equatable, Hashable, Sendable {
5555
static let modification = CaptureModifierSet(rawValue: 1 << CaptureModifiers.modification.rawValue)
5656
static let documentation = CaptureModifierSet(rawValue: 1 << CaptureModifiers.documentation.rawValue)
5757
static let defaultLibrary = CaptureModifierSet(rawValue: 1 << CaptureModifiers.defaultLibrary.rawValue)
58-
58+
5959
/// All values in the set.
6060
var values: [CaptureModifiers] {
6161
var rawValue = self.rawValue

Sources/CodeEditSourceEditor/Highlighting/StyledRangeContainer/StyledRangeContainer.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protocol StyledRangeContainerDelegate: AnyObject {
2020
class StyledRangeContainer {
2121
var _storage: [ProviderID: StyledRangeStore] = [:]
2222
weak var delegate: StyledRangeContainerDelegate?
23-
23+
2424
/// Initialize the container with a list of provider identifiers. Each provider is given an id, they should be
2525
/// passed on here so highlights can be associated with a provider for conflict resolution.
2626
/// - Parameters:
@@ -89,7 +89,8 @@ extension StyledRangeContainer: HighlightProviderStateDelegate {
8989
/// - Parameters:
9090
/// - provider: The provider sending the highlights.
9191
/// - highlights: The highlights provided. These cannot be outside the range to highlight, must be ordered by
92-
/// position, but do not need to be continuous. Ranges not included in these highlights will be saved as empty.
92+
/// position, but do not need to be continuous. Ranges not included in these highlights will be
93+
/// saved as empty.
9394
/// - rangeToHighlight: The range to apply the highlights to.
9495
func applyHighlightResult(provider: ProviderID, highlights: [HighlightRange], rangeToHighlight: NSRange) {
9596
assert(rangeToHighlight != .notFound, "NSNotFound is an invalid highlight range")

Sources/CodeEditSourceEditor/Highlighting/StyledRangeContainer/StyledRangeStore/StyledRangeStore.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class StyledRangeStore {
2626
}
2727

2828
// MARK: - Core
29-
29+
3030
/// Find all runs in a range.
3131
/// - Parameter range: The range to query.
3232
/// - Returns: A continuous array of runs representing the queried range.
@@ -52,7 +52,7 @@ final class StyledRangeStore {
5252

5353
return runs
5454
}
55-
55+
5656
/// Sets a capture and modifiers for a range.
5757
/// - Parameters:
5858
/// - capture: The capture to set.
@@ -63,7 +63,7 @@ final class StyledRangeStore {
6363
assert(range.upperBound <= _guts.count(in: OffsetMetric()), "upperBound outside valid range")
6464
set(runs: [Run(length: range.length, capture: capture, modifiers: modifiers)], for: range)
6565
}
66-
66+
6767
/// Replaces a range in the document with an array of runs.
6868
/// - Parameters:
6969
/// - runs: The runs to insert.

0 commit comments

Comments
 (0)