Skip to content

Commit bf1030d

Browse files
authored
Fix README formatting (#27)
The README parsing was getting a bit confused with the nested code blocks, this should fix that.
1 parent 10e5119 commit bf1030d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ A very common use of tree-sitter is to do syntax highlighting. It is possible to
9494

9595
First, check out how it works with SwiftTreeSitterLayer. It's complex, but does a lot for you.
9696

97-
```swift
97+
````swift
9898
// LanguageConfiguration takes care of finding and loading queries in SPM-created bundles.
9999
let markdownConfig = try LanguageConfiguration(tree_sitter_markdown(), name: "Markdown")
100100
let markdownInlineConfig = try LanguageConfiguration(
@@ -148,7 +148,7 @@ let highlights = try rootLayer.highlights(in: fullRange, provider: textProvider)
148148
for namedRange in highlights {
149149
print("\(namedRange.name): \(namedRange.range)")
150150
}
151-
```
151+
````
152152

153153
You can also use SwiftTreeSitter directly:
154154

0 commit comments

Comments
 (0)