refactor lexer #2
1 changed files with 1 additions and 1 deletions
|
|
@ -221,7 +221,7 @@ link :: Lexer
|
|||
link = do
|
||||
pos <- getPosition
|
||||
l <- linkRaw
|
||||
-- "unconsume" the last token
|
||||
-- register the position of the last token
|
||||
pos' <- flip incSourceColumn (-1) <$> getPosition
|
||||
pure $ (pos, LinkOpen) : l <> [(pos', LinkClose)]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue