File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Sources/SourceKitLSP/Swift Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -66,9 +66,9 @@ extension SwiftLanguageService {
66
66
. classifications ( in: range)
67
67
. map { $0. highlightingTokens ( in: snapshot) }
68
68
. reduce ( into: SyntaxHighlightingTokens ( tokens: [ ] ) ) { $0. tokens += $1. tokens }
69
-
70
69
71
- return tokens
70
+ return
71
+ tokens
72
72
. mergingTokens ( with: semanticTokens ?? SyntaxHighlightingTokens ( tokens: [ ] ) )
73
73
. sorted { $0. start < $1. start }
74
74
}
Original file line number Diff line number Diff line change @@ -102,12 +102,14 @@ extension SyntaxHighlightingTokens {
102
102
let kind = SemanticTokenTypes . all [ Int ( rawKind) ]
103
103
let modifiers = SemanticTokenModifiers ( rawValue: rawModifiers)
104
104
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
+ )
111
113
}
112
114
}
113
115
}
You can’t perform that action at this time.
0 commit comments