1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00

Use the correct parser.

This commit is contained in:
Rob Rix 2019-09-27 19:51:45 -04:00
parent f03000a6fb
commit 76cb8480a0
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -71,7 +71,7 @@ parseSymbols blobs = do
= catching $ renderPreciseToSymbols <$> parse precisePythonParser blob
| Precise <- javaMode modes
, Java <- blobLanguage'
= catching $ renderPreciseToSymbols <$> parse precisePythonParser blob
= catching $ renderPreciseToSymbols <$> parse preciseJavaParser blob
| otherwise = catching $ withSomeTerm renderToSymbols <$> doParse blob
where
catching m = m `catchError` (\(SomeException e) -> pure $ errorFile (show e))