mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Add an operator syntax kind
This will allow us to do semantic highlighting for operators in SourceKit-LSP.
This commit is contained in:
@@ -452,6 +452,8 @@ UIdent SwiftLangSupport::getUIDForSyntaxNodeKind(SyntaxNodeKind SC) {
|
||||
case SyntaxNodeKind::Identifier:
|
||||
case SyntaxNodeKind::DollarIdent:
|
||||
return KindIdentifier;
|
||||
case SyntaxNodeKind::Operator:
|
||||
return KindOperator;
|
||||
case SyntaxNodeKind::Integer:
|
||||
case SyntaxNodeKind::Floating:
|
||||
return KindNumber;
|
||||
|
||||
Reference in New Issue
Block a user