mirror of
https://github.com/github/semantic.git
synced 2024-12-24 07:25:44 +03:00
Deparenthesize.
This commit is contained in:
parent
86dfd83935
commit
4544d25974
@ -47,9 +47,9 @@ data Language = Language { getTsLanguage :: Ptr TSLanguage, getConstructor :: Co
|
||||
|
||||
languageForType :: String -> Maybe Language
|
||||
languageForType mediaType = case mediaType of
|
||||
".h" -> Just $ Language ts_language_c (constructorForProductions mempty mempty)
|
||||
".c" -> Just $ Language ts_language_c (constructorForProductions mempty mempty)
|
||||
".js" -> Just $ Language ts_language_javascript (constructorForProductions (Set.fromList [ "object" ]) fixedProductions)
|
||||
".h" -> Just . Language ts_language_c $ constructorForProductions mempty mempty
|
||||
".c" -> Just . Language ts_language_c $ constructorForProductions mempty mempty
|
||||
".js" -> Just . Language ts_language_javascript $ constructorForProductions (Set.fromList [ "object" ]) fixedProductions
|
||||
_ -> Nothing
|
||||
|
||||
parseTreeSitterFile :: Language -> Parser
|
||||
|
Loading…
Reference in New Issue
Block a user