1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00

Merge branch 'master' into fix-json-instances

This commit is contained in:
Patrick Thomson 2018-05-15 12:52:46 -04:00 committed by GitHub
commit d7cdffc6c4
2 changed files with 1 additions and 3 deletions

View File

@ -167,13 +167,11 @@ runParser blob@Blob{..} parser = case parser of
time "parse.tree_sitter_ast_parse" languageTag $
IO.rethrowing (parseToAST language blob)
AssignmentParser parser assignment -> do
trace ("Parsing " <> blobPath)
ast <- runParser blob parser `catchError` \ (SomeException err) -> do
writeStat (Stat.increment "parse.parse_failures" languageTag)
writeLog Error "failed parsing" (("task", "parse") : blobFields)
throwError (toException err)
options <- ask
trace ("Assigning " <> blobPath)
time "parse.assign" languageTag $
case Assignment.assign blobSource assignment ast of
Left err -> do

@ -1 +1 @@
Subproject commit 95316466eb752256acad81c64481d7be9d9ac2a5
Subproject commit 81d266c8d46609fb6c9e69c610121be6d97612a6