mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-02-16 12:52:06 +00:00
macOS: Syntax highlighter: Swift can bridge c strings automatically
This commit is contained in:
parent
7754f81dca
commit
ae4a728428
@ -143,7 +143,7 @@ class ConfTextStorage: NSTextStorage {
|
||||
.font: defaultFont
|
||||
]
|
||||
backingStore.setAttributes(defaultAttributes, range: fullTextRange)
|
||||
var spans = highlight_config(backingStore.string.cString(using: String.Encoding.utf8))!
|
||||
var spans = highlight_config(backingStore.string)!
|
||||
evaluateExcludePrivateIPs(highlightSpans: spans)
|
||||
|
||||
while spans.pointee.type != HighlightEnd {
|
||||
|
Loading…
Reference in New Issue
Block a user