Skip to content

Commit

Permalink
Add a TODO to LanguageLexer.CreateReal().
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Feb 18, 2023
1 parent 92df65f commit db87e58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/syntax/LanguageLexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ private static BigInteger CreateInteger(string text)

private static double CreateReal(string text)
{
// TODO: This can return PositiveInfinity/NegativeInfinity for overflow. We need to handle that.
return double.Parse(
text.Replace("_", null, StringComparison.Ordinal),
NumberStyles.AllowDecimalPoint | NumberStyles.AllowExponent,
Expand Down

0 comments on commit db87e58

Please sign in to comment.