mirror of
https://github.com/github/semantic.git
synced 2025-01-06 06:46:07 +03:00
Nothing is a perfectly cromulent language.
This commit is contained in:
parent
5f0b620152
commit
ee9123baa8
@ -61,7 +61,7 @@ parseDiffAndRenderBlobPair renderer blobs = case renderer of
|
||||
decorate (declarationAlgebra (source blob)) term
|
||||
diffAndRenderTermPair blobs (runBothWith diffTerms) Prologue.snd terms
|
||||
where languages = blobLanguage <$> blobs
|
||||
parseSource = parse (if runBothWith (==) languages then parserForLanguage (Both.fst languages) else LineByLineParser) . source
|
||||
parseSource = parse (parserForLanguage (runBothWith (<|>) languages)) . source
|
||||
|
||||
-- | A task to diff a pair of 'Term's and render the 'Diff', producing insertion/deletion 'Patch'es for non-existent 'SourceBlob's.
|
||||
diffAndRenderTermPair :: Functor f => Both SourceBlob -> Differ f a -> ((Both SourceBlob, Diff f a) -> output) -> Both (Term f a) -> Task (Maybe output)
|
||||
|
Loading…
Reference in New Issue
Block a user