--- source: crates/biome_json_parser/tests/spec_test.rs expression: snapshot --- ## Input ```json [-Infinity] ``` ## AST ``` JsonRoot { bom_token: missing (optional), value: JsonArrayValue { l_brack_token: L_BRACK@0..1 "[" [] [], elements: JsonArrayElementList [ JsonBogusValue { items: [ ERROR_TOKEN@1..2 "-" [] [], IDENT@2..10 "Infinity" [] [], ], }, ], r_brack_token: R_BRACK@10..11 "]" [] [], }, eof_token: EOF@11..11 "" [] [], } ``` ## CST ``` 0: JSON_ROOT@0..11 0: (empty) 1: JSON_ARRAY_VALUE@0..11 0: L_BRACK@0..1 "[" [] [] 1: JSON_ARRAY_ELEMENT_LIST@1..10 0: JSON_BOGUS_VALUE@1..10 0: ERROR_TOKEN@1..2 "-" [] [] 1: IDENT@2..10 "Infinity" [] [] 2: R_BRACK@10..11 "]" [] [] 2: EOF@11..11 "" [] [] ``` ## Diagnostics ``` number_minus_infinity.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × Minus must be followed by a digit > 1 │ [-Infinity] │ ^ ```