Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit f6b5307

Browse files
committed
Update to SwiftSyntaxHighlighter 1.0.0
1 parent 67336a0 commit f6b5307

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Package.resolved

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ let package = Package(
1717
.package(url: "https://github.com/SwiftDocOrg/GraphViz.git", .revision("03405c13dc1c31f50c08bbec6e7587cbee1c7fb3")),
1818
.package(url: "https://github.com/NSHipster/HypertextLiteral.git", .upToNextMinor(from: "0.0.2")),
1919
.package(url: "https://github.com/SwiftDocOrg/Markup.git", .upToNextMinor(from: "0.0.3")),
20-
.package(url: "https://github.com/NSHipster/SwiftSyntaxHighlighter.git", .revision("fe39b4ec07e1e37872adf4b506d223ab27cf8cea")),
20+
.package(url: "https://github.com/NSHipster/SwiftSyntaxHighlighter.git", .revision("1.0.0")),
2121
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMinor(from: "0.0.2")),
2222
],
2323
targets: [

Sources/swift-doc/Supporting Types/Components/Declaration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct Declaration: Component {
2626
}
2727

2828
var html: HypertextLiteral.HTML {
29-
var html = try! highlight(symbol.declaration, using: Xcode.self)
29+
var html = try! SwiftSyntaxHighlighter.highlight(source: symbol.declaration, using: Xcode.self)
3030
html = linkCodeElements(of: html, for: symbol, in: module)
3131
return HTML(html)
3232
}

Sources/swift-doc/Supporting Types/Components/Documentation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ struct Documentation: Component {
110110
codeBlock.fenceInfo?.compare("swift", options: .caseInsensitive) == .orderedSame,
111111
let source = codeBlock.literal
112112
{
113-
var html = try! highlight(source, using: Xcode.self)
113+
var html = try! SwiftSyntaxHighlighter.highlight(source: source, using: Xcode.self)
114114
html = linkCodeElements(of: html, for: symbol, in: module)
115115
return HTML(html)
116116
} else {

0 commit comments

Comments
 (0)