We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb0360 commit 83d8c5aCopy full SHA for 83d8c5a
Packages/Syntax/Sources/Syntax/TreeSitter/LanguageRegistry+Parser.swift
@@ -34,9 +34,10 @@ public extension LanguageRegistry {
34
/// - Throws: Any error that occurs while resolving the language layer.
35
func highlightParser(name: String) throws -> (any HighlightParsing)? {
36
37
- guard let language = Language(rawValue: name) else { return nil }
38
-
39
- guard let config = try self.configuration(for: language) else { return nil }
+ guard
+ let language = Language(rawValue: name),
+ let config = try self.configuration(for: language)
40
+ else { return nil }
41
42
return try TreeSitterClient(languageConfig: config, languageProvider: self.languageProvider)
43
}
0 commit comments