Add located combinator; improved anchor matches with tests

This commit is contained in:
Igor Ranieri 2025-09-24 10:13:16 +02:00
parent 8887476626
commit 7ae868932d
2 changed files with 18 additions and 9 deletions

View file

@ -54,6 +54,11 @@ modules = do
, (1, 18, Anchor "myAnchor")
]
"\"OtherModule.Name\\#myAnchor\""
`shouldLexTo` [ (1, 1, Module)
, (1, 2, Token "OtherModule.Name")
, (1, 18, Anchor "myAnchor")
]
link :: Expectation
link =
"[link to](http://some.website)"