From 76cb8480a08fe04f1f7d2e5e3322bfbcf9e16741 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 27 Sep 2019 19:51:45 -0400 Subject: [PATCH] Use the correct parser. --- src/Semantic/Api/Symbols.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Semantic/Api/Symbols.hs b/src/Semantic/Api/Symbols.hs index 5e6fd2fa3..dac12e1ef 100644 --- a/src/Semantic/Api/Symbols.hs +++ b/src/Semantic/Api/Symbols.hs @@ -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))