Skip to content

Commit

Permalink
fill in more xcode theme mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzanowskim committed Aug 25, 2024
1 parent 0d0261a commit 757727a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/ThemePark/XcodeTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ extension XcodeTheme: Styling {
return Style(color: color)
case .syntax(.comment(_)):
return syntaxStyle(for: "xcode.syntax.comment")
case .syntax(.literal(.string(.uri))):
return syntaxStyle(for: "xcode.syntax.url")
case .syntax(.literal(.string(_))):
return syntaxStyle(for: "xcode.syntax.string")
case .syntax(.keyword(_)):
Expand All @@ -183,6 +185,10 @@ extension XcodeTheme: Styling {
return syntaxStyle(for: "xcode.syntax.number")
case .syntax(.identifier(.type)):
return syntaxStyle(for: "xcode.syntax.identifier.type")
case .syntax(.definition(.method)), .syntax(.definition(.function)), .syntax(.definition(.constructor)), .syntax(.definition(.property)):
return syntaxStyle(for: "xcode.syntax.identifier.function")
case .syntax(.definition(.macro)):
return syntaxStyle(for: "xcode.syntax.identifier..macro")
case .syntax(.invisible):
let color = PlatformColor(componentsString: invisibles) ?? fallbackForegroundColor
let font = PlatformFont(componentsString: invisibles) ?? fallbackFont
Expand Down

0 comments on commit 757727a

Please sign in to comment.