Skip to content

Commit 3066e98

Browse files
committed
Rename some SyntaxClassifications
1 parent 7385eb7 commit 3066e98

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Sources/SourceKitLSP/DocumentTokens.swift

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,19 @@ extension SyntaxClassification {
8989
return nil
9090
case .editorPlaceholder:
9191
return nil
92-
case .stringInterpolationAnchor:
93-
return nil
9492
case .keyword:
9593
return (.keyword, [])
96-
case .identifier, .typeIdentifier, .dollarIdentifier:
94+
case .identifier, .type, .dollarIdentifier:
9795
return (.identifier, [])
98-
case .operatorIdentifier:
96+
case .operator:
9997
return (.operator, [])
10098
case .integerLiteral, .floatingLiteral:
10199
return (.number, [])
102100
case .stringLiteral:
103101
return (.string, [])
104102
case .regexLiteral:
105103
return (.regexp, [])
106-
case .poundDirective:
107-
return (.macro, [])
108-
case .buildConfigId:
104+
case .ifConfigDirective:
109105
return (.macro, [])
110106
case .attribute:
111107
return (.modifier, [])

0 commit comments

Comments
 (0)