1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 08:54:14 +03:00

Bring the language modes into scope.

This commit is contained in:
Rob Rix 2019-09-26 14:04:46 -04:00
parent 3c564eb7a5
commit 8ca3d7b277
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -115,7 +115,7 @@ type TermConstraints =
]
doParse :: (ParseEffects sig m) => Blob -> m (SomeTerm TermConstraints Loc)
doParse blob = case blobLanguage blob of
doParse blob = ask @PerLanguageModes >>= \ _ -> case blobLanguage blob of
Go -> SomeTerm <$> parse goParser blob
Haskell -> SomeTerm <$> parse haskellParser blob
JavaScript -> SomeTerm <$> parse tsxParser blob