mirror of
https://github.com/github/semantic.git
synced 2024-12-27 17:05:33 +03:00
Stub in range/categories/syntax showing.
This commit is contained in:
parent
f205a59f6d
commit
543acb01c0
@ -5,6 +5,7 @@ module Renderer.JSON (
|
|||||||
|
|
||||||
import Diff
|
import Diff
|
||||||
import Line
|
import Line
|
||||||
|
import Range
|
||||||
import Row
|
import Row
|
||||||
import Renderer
|
import Renderer
|
||||||
import Renderer.Split
|
import Renderer.Split
|
||||||
@ -31,4 +32,7 @@ instance Show (JSON a) where
|
|||||||
showPatch (SplitDelete term) = "{'delete':" ++ showTerm term ++ "}"
|
showPatch (SplitDelete term) = "{'delete':" ++ showTerm term ++ "}"
|
||||||
showPatch (SplitReplace term) = "{'replace':" ++ showTerm term ++ "}"
|
showPatch (SplitReplace term) = "{'replace':" ++ showTerm term ++ "}"
|
||||||
showTerm (info :< syntax) = showInfoSyntax info syntax
|
showTerm (info :< syntax) = showInfoSyntax info syntax
|
||||||
showInfoSyntax info syntax = "{}"
|
showInfoSyntax (Info range categories) syntax = "{'range':" ++ showRange range ++ ",'categories':" ++ showCategories categories ++ ",'syntax':" ++ showSyntax syntax ++ "}"
|
||||||
|
showRange (Range start end) = "{}"
|
||||||
|
showCategories c = "{}"
|
||||||
|
showSyntax syntax = "{}"
|
||||||
|
Loading…
Reference in New Issue
Block a user