We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69f9d4b commit 35e291dCopy full SHA for 35e291d
1 file changed
Core/Sources/SuggestionWidget/SyntaxHighlighting.swift
@@ -77,7 +77,8 @@ func highlightedCodeBlock(
77
return formatted
78
default:
79
var language = language
80
- if language == "objective-c" {
+ // Workaround: Highlightr uses a different identifier for Objective-C.
81
+ if language.lowercased().hasPrefix("objective"), language.lowercased().hasSuffix("c") {
82
language = "objectivec"
83
}
84
func unhighlightedCode() -> NSAttributedString {
0 commit comments