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

Add precise tagging support for Java.

This commit is contained in:
Rob Rix 2019-09-27 19:09:09 -04:00
parent c81f9660f4
commit 9585226bb7
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

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