Skip to content

Commit

Permalink
Fix lexing of underscores in ints
Browse files Browse the repository at this point in the history
  • Loading branch information
natefaubion committed Aug 6, 2021
1 parent 71d84e6 commit 2b3c78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PureScript/CST/Lexer.purs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ token =
fractionPart <- optional (try (charDot *> fractionPartRegex))
exponentPart <- optional (charExponent *> parseExponentPart)
if isNothing fractionPart && isNothing exponentPart then
case Int.fromString intPart of
case Int.fromString (stripUnderscores intPart) of
Just int ->
pure $ TokInt intPart int
Nothing ->
Expand Down

0 comments on commit 2b3c78a

Please sign in to comment.