fix(lexer): handle crlf in newline

Do we support windows 🤔
This commit is contained in:
Primrose 2025-09-24 18:35:15 +08:00
parent 39cfe2035d
commit fdb9070e99
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
2 changed files with 6 additions and 2 deletions

View file

@ -107,11 +107,15 @@ maths = do
]
escaping :: Expectation
escaping =
escaping = do
"\\("
`shouldLexTo` [ (1, 1, Escape)
, (1, 2, Token "(")
]
"\\(\r\n"
`shouldLexTo` [ (1, 1, Escape)
, (1, 2, Token "(")
]
unicode :: Expectation
unicode =