1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 00:42:33 +03:00

Fix cmark timings

This commit is contained in:
Timothy Clem 2017-10-10 11:03:04 -07:00
parent aed26cdb52
commit 609212a413

View File

@ -222,8 +222,7 @@ runParser Options{..} blob@Blob{..} = go
time "parse.tree_sitter_parse" languageTag $
liftIO (treeSitterParser tslanguage blob)
MarkdownParser ->
time "parse.cmark_parse" languageTag $
pure (cmarkParser blobSource)
pure (time "parse.cmark_parse" languageTag (cmarkParser blobSource))
blobFields = ("path", blobPath) : languageTag
languageTag = maybe [] (pure . (,) ("language" :: String) . show) blobLanguage
errors :: (Syntax.Error :< fs, Apply Foldable fs, Apply Functor fs) => Term (Union fs) (Record Assignment.Location) -> [Error.Error String]