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:
parent
3c564eb7a5
commit
8ca3d7b277
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user