diff options
| author | Christian Cleberg <[email protected]> | 2026-08-07 17:41:00 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-08-07 17:41:00 -0500 |
| commit | ff200d21e93d6683f779fe1f3280ac8d8561d393 (patch) | |
| tree | f6603518ba62134faa699d864003b90464930ab9 /Hutch/Views/Repositories/SyntaxHighlighter.swift | |
| parent | 9d85bc7c154843693913bf0cc67c6e9ff0d8f897 (diff) | |
| parent | 283fbf00fdffd64c924b6cb22c84e803b718f078 (diff) | |
| download | hutch-main.tar.gz hutch-main.tar.bz2 hutch-main.zip | |
Adopt Swift 6 language mode
Diffstat (limited to 'Hutch/Views/Repositories/SyntaxHighlighter.swift')
| -rw-r--r-- | Hutch/Views/Repositories/SyntaxHighlighter.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Hutch/Views/Repositories/SyntaxHighlighter.swift b/Hutch/Views/Repositories/SyntaxHighlighter.swift index 5ae8f58..dfab443 100644 --- a/Hutch/Views/Repositories/SyntaxHighlighter.swift +++ b/Hutch/Views/Repositories/SyntaxHighlighter.swift @@ -3,7 +3,7 @@ import Highlightr import SwiftUI import UIKit -enum SyntaxHighlightTheme { +nonisolated enum SyntaxHighlightTheme { case light case dark @@ -31,7 +31,7 @@ enum SyntaxHighlightTheme { /// instance must stay on the thread/task that created it. Callers that fail to /// resolve a language — or hit an unavailable engine — get `nil` and should /// fall back to plain, escaped text. -final class SyntaxHighlighter { +nonisolated final class SyntaxHighlighter { private let highlightr: Highlightr? private let supportedLanguages: Set<String> @@ -208,7 +208,7 @@ final class SyntaxHighlighter { ] } -private extension UIColor { +nonisolated private extension UIColor { /// `#rrggbb` for HTML inline styles, or `nil` if the color isn't RGB-convertible. var hexRGBString: String? { var red: CGFloat = 0 |
