From 9585226bb7ebe471c989aa415241d4a48f7db54e Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 27 Sep 2019 19:09:09 -0400 Subject: [PATCH] Add precise tagging support for Java. --- src/Semantic/Api/Symbols.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Semantic/Api/Symbols.hs b/src/Semantic/Api/Symbols.hs index 829e05ff3..411c3ed1d 100644 --- a/src/Semantic/Api/Symbols.hs +++ b/src/Semantic/Api/Symbols.hs @@ -70,6 +70,9 @@ parseSymbols blobs = do | Precise <- pythonMode modes , Python <- blobLanguage' = catching $ renderPreciseToSymbols <$> parse precisePythonParser blob + | Precise <- javaMode modes + , Java <- blobLanguage' + = catching $ renderPreciseToSymbols <$> parse precisePythonParser blob | otherwise = catching $ withSomeTerm renderToSymbols <$> doParse blob where catching m = m `catchError` (\(SomeException e) -> pure $ errorFile (show e))