From 86ee25418a82bc0545c58a228008c253121f7e77 Mon Sep 17 00:00:00 2001 From: Ziyang Huang Date: Thu, 10 Aug 2023 22:50:45 +0800 Subject: [PATCH] Rename some `SyntaxClassification` --- Sources/SourceKitLSP/DocumentTokens.swift | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Sources/SourceKitLSP/DocumentTokens.swift b/Sources/SourceKitLSP/DocumentTokens.swift index 2f199a43f..7eab35979 100644 --- a/Sources/SourceKitLSP/DocumentTokens.swift +++ b/Sources/SourceKitLSP/DocumentTokens.swift @@ -89,23 +89,19 @@ extension SyntaxClassification { return nil case .editorPlaceholder: return nil - case .stringInterpolationAnchor: - return nil case .keyword: return (.keyword, []) - case .identifier, .typeIdentifier, .dollarIdentifier: + case .identifier, .type, .dollarIdentifier: return (.identifier, []) - case .operatorIdentifier: + case .operator: return (.operator, []) - case .integerLiteral, .floatingLiteral: + case .integerLiteral, .floatLiteral: return (.number, []) case .stringLiteral: return (.string, []) case .regexLiteral: return (.regexp, []) - case .poundDirective: - return (.macro, []) - case .buildConfigId: + case .ifConfigDirective: return (.macro, []) case .attribute: return (.modifier, [])