mirror of
https://github.com/github/semantic.git
synced 2024-12-01 00:33:59 +03:00
Fix the 📝 for syntaxParserForLanguage.
This commit is contained in:
parent
8b702e27c7
commit
e95f35e45e
@ -86,7 +86,7 @@ someParser _ Python = Just (SomeParser pythonParser)
|
||||
someParser _ Ruby = Just (SomeParser rubyParser)
|
||||
someParser _ TypeScript = Just (SomeParser typescriptParser)
|
||||
|
||||
-- | Return a 'Language'-specific 'Parser', if one exists, falling back to the 'LineByLineParser'.
|
||||
-- | Return a 'Language'-specific 'Parser', if one exists.
|
||||
syntaxParserForLanguage :: Language -> Maybe (Parser (Term Syntax (Record DefaultFields)))
|
||||
syntaxParserForLanguage language = case language of
|
||||
Go -> Just (TreeSitterParser tree_sitter_go)
|
||||
|
Loading…
Reference in New Issue
Block a user