mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Fix cmark timings
This commit is contained in:
parent
aed26cdb52
commit
609212a413
@ -222,8 +222,7 @@ runParser Options{..} blob@Blob{..} = go
|
|||||||
time "parse.tree_sitter_parse" languageTag $
|
time "parse.tree_sitter_parse" languageTag $
|
||||||
liftIO (treeSitterParser tslanguage blob)
|
liftIO (treeSitterParser tslanguage blob)
|
||||||
MarkdownParser ->
|
MarkdownParser ->
|
||||||
time "parse.cmark_parse" languageTag $
|
pure (time "parse.cmark_parse" languageTag (cmarkParser blobSource))
|
||||||
pure (cmarkParser blobSource)
|
|
||||||
blobFields = ("path", blobPath) : languageTag
|
blobFields = ("path", blobPath) : languageTag
|
||||||
languageTag = maybe [] (pure . (,) ("language" :: String) . show) blobLanguage
|
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]
|
errors :: (Syntax.Error :< fs, Apply Foldable fs, Apply Functor fs) => Term (Union fs) (Record Assignment.Location) -> [Error.Error String]
|
||||||
|
Loading…
Reference in New Issue
Block a user