mirror of
https://github.com/github/semantic.git
synced 2024-11-28 01:47:01 +03:00
Quote the titles of term graphs.
This commit is contained in:
parent
2e06b93f0b
commit
5363b07905
@ -22,7 +22,8 @@ renderDOTDiff blobs diff = renderGraph (defaultStyleViaShow { graphName = B.pack
|
||||
where quote a = "\"" <> a <> "\""
|
||||
|
||||
renderDOTTerm :: (ConstructorName syntax, Foldable syntax, Functor syntax) => Blob -> Term syntax ann -> B.ByteString
|
||||
renderDOTTerm Blob{..} term = renderGraph (defaultStyleViaShow { graphName = B.pack blobPath }) (cata termAlgebra term 0 [])
|
||||
renderDOTTerm Blob{..} term = renderGraph (defaultStyleViaShow { graphName = B.pack (quote blobPath) }) (cata termAlgebra term 0 [])
|
||||
where quote a = "\"" <> a <> "\""
|
||||
|
||||
diffAlgebra :: (ConstructorName syntax, Foldable syntax) => DiffF syntax ann1 ann2 (Int -> [Attribute B.ByteString] -> State) -> Int -> [Attribute B.ByteString] -> State
|
||||
diffAlgebra d i as = case d of
|
||||
|
Loading…
Reference in New Issue
Block a user