Skip to content

Commit 1c2636e

Browse files
Fixed unescaped-literal missing character. (#99)
* Fixed `unescaped-literal` missing character. * JSON empty strings are valid. * Fix json-quoted-string character repitition Co-authored-by: Nolan Woods <[email protected]>
1 parent 08bea97 commit 1c2636e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GRAMMAR.ABNF

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ unescaped-literal = %x20-21 / ; space !
569569
%x23-5B / ; # - [
570570
%x5D-5F / ; ] ^ _
571571
%x61-7A / ; a-z
572-
%x7C-10FFFF ; |}~ ...
572+
%x7B-10FFFF ; {|}~ ...
573573
escaped-literal = escaped-char / (escape "`")
574574
number = ["-"] 1*digit
575575
digit = %x30-39
@@ -625,7 +625,7 @@ json-value = false / null / true / json-object / json-array /
625625
false = %x66.61.6c.73.65 ; false
626626
null = %x6e.75.6c.6c ; null
627627
true = %x74.72.75.65 ; true
628-
json-quoted-string = %x22 1*(unescaped-literal / escaped-literal) %x22
628+
json-quoted-string = %x22 *( unescaped-literal / escaped-literal ) %x22
629629
begin-array = ws %x5B ws ; [ left square bracket
630630
begin-object = ws %x7B ws ; { left curly bracket
631631
end-array = ws %x5D ws ; ] right square bracket

0 commit comments

Comments
 (0)