Additional tests

This commit is contained in:
2024-12-29 12:22:24 -06:00
committed by James Eversole
parent dbe9cbd6c1
commit 8a2dc2dfcf
4 changed files with 17 additions and 7 deletions

View File

@ -79,10 +79,8 @@ comment :: Lexer LToken
comment = do
string "--"
content <- many (satisfy (/= '\n'))
optional (char '\n')
pure (LComment content)
sc :: Lexer ()
sc = skipMany (void (char ' ') <|> void (char '\t') <|> void comment)