Skip to content

Commit cd4f7c9

Browse files
committed
lint
1 parent 561ab0a commit cd4f7c9

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Sources/SourceKitLSP/Swift/SemanticTokens.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ extension SwiftLanguageService {
6666
.classifications(in: range)
6767
.map { $0.highlightingTokens(in: snapshot) }
6868
.reduce(into: SyntaxHighlightingTokens(tokens: [])) { $0.tokens += $1.tokens }
69-
7069

71-
return tokens
70+
return
71+
tokens
7272
.mergingTokens(with: semanticTokens ?? SyntaxHighlightingTokens(tokens: []))
7373
.sorted { $0.start < $1.start }
7474
}

Sources/SourceKitLSP/Swift/SyntaxHighlightingTokens.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ extension SyntaxHighlightingTokens {
102102
let kind = SemanticTokenTypes.all[Int(rawKind)]
103103
let modifiers = SemanticTokenModifiers(rawValue: rawModifiers)
104104

105-
self.tokens.append(SyntaxHighlightingToken(
106-
start: current,
107-
utf16length: length,
108-
kind: kind,
109-
modifiers: modifiers
110-
))
105+
self.tokens.append(
106+
SyntaxHighlightingToken(
107+
start: current,
108+
utf16length: length,
109+
kind: kind,
110+
modifiers: modifiers
111+
)
112+
)
111113
}
112114
}
113115
}

0 commit comments

Comments
 (0)