mirror of
https://github.com/github/semantic.git
synced 2024-12-03 00:16:52 +03:00
🔥 Declaration.Function, Declaration.Method, & Syntax.Context from Markdown syntax.
This commit is contained in:
parent
4717bde7a8
commit
d2382539d1
@ -14,7 +14,6 @@ import Data.Syntax (makeTerm)
|
|||||||
import qualified Data.Syntax as Syntax
|
import qualified Data.Syntax as Syntax
|
||||||
import Data.Syntax.Assignment hiding (Assignment, Error)
|
import Data.Syntax.Assignment hiding (Assignment, Error)
|
||||||
import qualified Data.Syntax.Assignment as Assignment
|
import qualified Data.Syntax.Assignment as Assignment
|
||||||
import qualified Data.Syntax.Declaration as Declaration
|
|
||||||
import qualified Data.Syntax.Markup as Markup
|
import qualified Data.Syntax.Markup as Markup
|
||||||
import Data.Term as Term (Term(..), TermF(..), termIn, unwrap)
|
import Data.Term as Term (Term(..), TermF(..), termIn, unwrap)
|
||||||
import qualified Data.Text as Text
|
import qualified Data.Text as Text
|
||||||
@ -46,10 +45,6 @@ type Syntax =
|
|||||||
, Markup.Strong
|
, Markup.Strong
|
||||||
, Markup.Text
|
, Markup.Text
|
||||||
, Markup.Strikethrough
|
, Markup.Strikethrough
|
||||||
-- NB: Diffing requires Methods, Functions, and Context in the union.
|
|
||||||
, Declaration.Method
|
|
||||||
, Declaration.Function
|
|
||||||
, Syntax.Context
|
|
||||||
-- Assignment errors; cmark does not provide parse errors.
|
-- Assignment errors; cmark does not provide parse errors.
|
||||||
, Syntax.Error
|
, Syntax.Error
|
||||||
, []
|
, []
|
||||||
|
Loading…
Reference in New Issue
Block a user