We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7fc898 commit 477da04Copy full SHA for 477da04
1 file changed
Core/Sources/SuggestionWidget/SyntaxHighlighting.swift
@@ -32,6 +32,10 @@ func highlighted(code: String, language: String) -> [NSAttributedString] {
32
)
33
return convertToCodeLines(formatted)
34
default:
35
+ var language = language
36
+ if language == "objective-c" {
37
+ language = "objectivec"
38
+ }
39
func unhighlightedCode() -> [NSAttributedString] {
40
return convertToCodeLines(NSAttributedString(string: code, attributes: [.foregroundColor: NSColor.white]))
41
}
0 commit comments