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
parent 8915df00e2
commit 0b143a46a5

View File

@@ -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