mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
Forgot that capital E can be used in floats too, I hate case sensitivity.
This commit is contained in:
@@ -326,7 +326,7 @@ proc getTok(my: var TJsonParser): TTokKind =
|
||||
case my.buf[my.bufpos]
|
||||
of '-', '.', '0'..'9':
|
||||
parseNumber(my)
|
||||
if {'.', 'e'} in my.a:
|
||||
if {'.', 'e', 'E'} in my.a:
|
||||
result = tkFloat
|
||||
else:
|
||||
result = tkInt
|
||||
|
||||
Reference in New Issue
Block a user