Improved bare link parser
This commit is contained in:
parent
82dcb6913e
commit
7c4603528d
2 changed files with 38 additions and 26 deletions
|
|
@ -57,12 +57,14 @@ modules = do
|
|||
link :: Expectation
|
||||
link =
|
||||
"[link to](http://some.website)"
|
||||
`shouldLexTo` [ (1, 1, BracketOpen)
|
||||
`shouldLexTo` [ (1, 1, LinkOpen)
|
||||
, (1, 1, BracketOpen)
|
||||
, (1, 2, Token "link to")
|
||||
, (1, 9, BracketClose)
|
||||
, (1, 10, ParenOpen)
|
||||
, (1, 11, Token "http://some.website")
|
||||
, (1, 30, ParenClose)
|
||||
, (1, 30, LinkClose)
|
||||
]
|
||||
|
||||
labeledLink :: Expectation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue