Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public struct SemanticTokenModifiers: OptionSet, Hashable, Sendable {
public static let fileScope = Self(rawValue: 1 << 19)
public static let globalScope = Self(rawValue: 1 << 20)

// The following is an LSP extension from SourceKit-LSP
/// Marks a token as a parameter label in a function signature or call.
public static let parameterLabel = Self(rawValue: 1 << 21)

public var name: String? {
switch self {
case .declaration: return "declaration"
Expand All @@ -70,6 +74,7 @@ public struct SemanticTokenModifiers: OptionSet, Hashable, Sendable {
case .classScope: return "classScope"
case .fileScope: return "fileScope"
case .globalScope: return "globalScope"
case .parameterLabel: return "parameterLabel"
default: return nil
}
}
Expand Down Expand Up @@ -98,5 +103,6 @@ public struct SemanticTokenModifiers: OptionSet, Hashable, Sendable {
.classScope,
.fileScope,
.globalScope,
.parameterLabel,
]
}