Forgot that capital E can be used in floats too, I hate case sensitivity.

This commit is contained in:
dom96 2011-02-13 00:49:42 +00:00
commit 0b143a46a5

View file

@ -326,7 +326,7 @@ proc getTok(my: var TJsonParser): TTokKind =
case my.buf[my.bufpos] case my.buf[my.bufpos]
of '-', '.', '0'..'9': of '-', '.', '0'..'9':
parseNumber(my) parseNumber(my)
if {'.', 'e'} in my.a: if {'.', 'e', 'E'} in my.a:
result = tkFloat result = tkFloat
else: else:
result = tkInt result = tkInt