Fix number lexer to avoid conflict with object indexing (#2254)
This commit is contained in:
1 parent
fac5553b22
commit
73966c80ec
3 files changed
+126
-119
No files matched your search
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user