Skip to content

Commit 477da04

Browse files
committed
Change objective-c to objectivec so it can be correctly highlighted
1 parent d7fc898 commit 477da04

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Core/Sources/SuggestionWidget/SyntaxHighlighting.swift

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ func highlighted(code: String, language: String) -> [NSAttributedString] {
3232
)
3333
return convertToCodeLines(formatted)
3434
default:
35+
var language = language
36+
if language == "objective-c" {
37+
language = "objectivec"
38+
}
3539
func unhighlightedCode() -> [NSAttributedString] {
3640
return convertToCodeLines(NSAttributedString(string: code, attributes: [.foregroundColor: NSColor.white]))
3741
}

0 commit comments

Comments
 (0)