mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
Delegate free rendering to freeSyntaxToSplit.
This commit is contained in:
parent
676c5c67ab
commit
1c55552a1b
@ -30,8 +30,8 @@ data Row =
|
||||
| InsertRow HTML
|
||||
| DeleteRow HTML
|
||||
|
||||
straightToSplit :: Diff a Info -> String -> String -> [(HTML, HTML)]
|
||||
straightToSplit diff before after = []
|
||||
straightToSplit :: Diff a Info -> String -> String -> [Row]
|
||||
straightToSplit (Free (Annotated (left, right) syntax)) = freeSyntaxToSplit syntax
|
||||
|
||||
freeSyntaxToSplit :: Syntax a (Diff a Info) -> String -> String -> [Row]
|
||||
freeSyntaxToSplit (Leaf _) before after = []
|
||||
|
Loading…
Reference in New Issue
Block a user