aboutsummaryrefslogtreecommitdiff
path: root/core/encoding/json
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-12-05 15:51:05 +0000
committergingerBill <bill@gingerbill.org>2024-12-05 15:51:05 +0000
commitd452d37b93cb3318f995adc74f84076c1b3103a5 (patch)
tree6d95cbace860593f9b671f0fd2c5f715fbc3dfd0 /core/encoding/json
parente3b16464908f2d6e85b7569ad4da6a802e3283c3 (diff)
Fix #4537
Diffstat (limited to 'core/encoding/json')
-rw-r--r--core/encoding/json/tokenizer.odin1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/encoding/json/tokenizer.odin b/core/encoding/json/tokenizer.odin
index 1a57ba6f0..e46d879a7 100644
--- a/core/encoding/json/tokenizer.odin
+++ b/core/encoding/json/tokenizer.odin
@@ -259,6 +259,7 @@ get_token :: proc(t: ^Tokenizer) -> (token: Token, err: Error) {
skip_digits(t)
}
if t.r == 'e' || t.r == 'E' {
+ token.kind = .Float
switch r := next_rune(t); r {
case '+', '-':
next_rune(t)