Fix a parser bug to parse '1' as IntLit

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
Danila Fedorin 2023-12-01 16:24:19 -08:00
parent 3232d80376
commit 22f3937523

View File

@ -47,7 +47,7 @@ strLit =
name : Parser String
name = Parser.variable
{ start = \c -> Char.isAlphaNum c || c == '_'
{ start = \c -> Char.isAlpha c || c == '_'
, inner = \c -> Char.isAlphaNum c || c == '_'
, reserved = Set.empty
}