@@ -802,7 +802,7 @@ final class LocalSwiftTests: XCTestCase {
802
802
XCTAssertEqual ( try ! xmlDocumentationToMarkdown ( """
803
803
<Declaration>func foo(_ bar: <Type usr= " fake " >Baz</Type>)</Declaration>
804
804
""" ) , """
805
- ```
805
+ ```swift
806
806
func foo(_ bar: Baz)
807
807
```
808
808
@@ -812,7 +812,7 @@ final class LocalSwiftTests: XCTestCase {
812
812
XCTAssertEqual ( try ! xmlDocumentationToMarkdown ( """
813
813
<Declaration>func foo() -> <Type>Bar</Type></Declaration>
814
814
""" ) , """
815
- ```
815
+ ```swift
816
816
func foo() -> Bar
817
817
```
818
818
@@ -822,7 +822,7 @@ final class LocalSwiftTests: XCTestCase {
822
822
XCTAssertEqual ( try ! xmlDocumentationToMarkdown ( """
823
823
<Declaration>func replacingOccurrences<Target, Replacement>(of target: Target, with replacement: Replacement, options: <Type usr= " s:SS " >String</Type>.<Type usr= " s:SS10FoundationE14CompareOptionsa " >CompareOptions</Type> = default, range searchRange: <Type usr= " s:Sn " >Range</Type><<Type usr= " s:SS " >String</Type>.<Type usr= " s:SS5IndexV " >Index</Type>>? = default) -> <Type usr= " s:SS " >String</Type> where Target : <Type usr= " s:Sy " >StringProtocol</Type>, Replacement : <Type usr= " s:Sy " >StringProtocol</Type></Declaration>
824
824
""" ) , """
825
- ```
825
+ ```swift
826
826
func replacingOccurrences<Target, Replacement>(of target: Target, with replacement: Replacement, options: String.CompareOptions = default, range searchRange: Range<String.Index>? = default) -> String where Target : StringProtocol, Replacement : StringProtocol
827
827
```
828
828
@@ -835,7 +835,7 @@ final class LocalSwiftTests: XCTestCase {
835
835
XCTAssertEqual ( try ! xmlDocumentationToMarkdown ( """
836
836
<Class><Declaration>var foo</Declaration></Class>
837
837
""" ) , """
838
- ```
838
+ ```swift
839
839
var foo
840
840
```
841
841
@@ -846,7 +846,7 @@ final class LocalSwiftTests: XCTestCase {
846
846
XCTAssertEqual ( try ! xmlDocumentationToMarkdown ( """
847
847
<Class><Name>foo</Name><Declaration>var foo</Declaration></Class>
848
848
""" ) , """
849
- ```
849
+ ```swift
850
850
var foo
851
851
```
852
852
@@ -856,7 +856,7 @@ final class LocalSwiftTests: XCTestCase {
856
856
XCTAssertEqual ( try ! xmlDocumentationToMarkdown ( """
857
857
<Class><USR>asdf</USR><Declaration>var foo</Declaration><Name>foo</Name></Class>
858
858
""" ) , """
859
- ```
859
+ ```swift
860
860
var foo
861
861
```
862
862
@@ -874,7 +874,7 @@ final class LocalSwiftTests: XCTestCase {
874
874
""" ) , """
875
875
FOO
876
876
877
- ```
877
+ ```swift
878
878
var foo
879
879
```
880
880
@@ -1005,7 +1005,7 @@ final class LocalSwiftTests: XCTestCase {
1005
1005
" </CommentParts> " +
1006
1006
" </Class> "
1007
1007
) , """
1008
- ```
1008
+ ```swift
1009
1009
struct String
1010
1010
```
1011
1011
@@ -1018,14 +1018,14 @@ final class LocalSwiftTests: XCTestCase {
1018
1018
1019
1019
You can create new strings A *string literal* i
1020
1020
1021
- ```
1021
+ ```swift
1022
1022
1. \t let greeting = " Welcome! "
1023
1023
2. \t
1024
1024
```
1025
1025
1026
1026
...
1027
1027
1028
- ```
1028
+ ```swift
1029
1029
1. \t let greeting = " Welcome! "
1030
1030
2. \t
1031
1031
```
@@ -1176,7 +1176,7 @@ final class LocalSwiftTests: XCTestCase {
1176
1176
XCTAssertEqual ( content. kind, . markdown)
1177
1177
XCTAssertEqual ( content. value, """
1178
1178
S
1179
- ```
1179
+ ```swift
1180
1180
struct S
1181
1181
```
1182
1182
@@ -1228,7 +1228,7 @@ final class LocalSwiftTests: XCTestCase {
1228
1228
XCTAssertEqual ( content. kind, . markdown)
1229
1229
XCTAssertEqual ( content. value, ##"""
1230
1230
test(\_:\_:)
1231
- ```
1231
+ ```swift
1232
1232
func test(_ a: Int, _ b: Int)
1233
1233
```
1234
1234
@@ -1253,7 +1253,7 @@ final class LocalSwiftTests: XCTestCase {
1253
1253
XCTAssertEqual ( content. kind, . markdown)
1254
1254
XCTAssertEqual ( content. value, ##"""
1255
1255
\*%\*(\_:\_:)
1256
- ```
1256
+ ```swift
1257
1257
func *%* (lhs: String, rhs: String)
1258
1258
```
1259
1259
0 commit comments