Fix number lexer to avoid conflict with object indexing (#2254)

This commit is contained in:
itchyny authored and GitHub committed 2023-06-27 07:24:49 +09:00
1 parent fac5553b22
commit 73966c80ec
3 files changed
+126 -119

No files matched your search

+7
View File
@@ -146,6 +146,13 @@ jq: error: Cannot use number (0) as object key at <top-level>, line 1:
{"foo": {"bar": 20}}
20
.e0, .E1, .E-1, .E+1
{"e0": 1, "E1": 2, "E": 3}
1
2
2
4
[.[]|.foo?]
[1,[2],{"foo":3,"bar":4},{},{"foo":5}]
[3,null,5]