Skip to content
Open
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
12 changes: 12 additions & 0 deletions Sources/CodeEditSourceEditor/Enums/CaptureName.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ public enum CaptureName: Int8, CaseIterable, Sendable {
return .keywordReturn
case "keyword.function":
return .keywordFunction
case "text.title", "text.strong", "punctuation.special":
return .keyword
case "text.literal", "text.uri", "string.escape":
return .string
case "text.reference":
return .type
case "text.emphasis":
return .variable
case "punctuation.delimiter":
return .comment
case "none":
return nil
default:
return nil
}
Expand Down