Unverified Commit 11dde418 authored by Parth Sareen's avatar Parth Sareen Committed by GitHub
Browse files

server: improve spacing for JSON grammar (#10131)

parent a53d744b
......@@ -642,18 +642,18 @@ object ::=
"{" ws (
string ":" ws value
("," ws string ":" ws value)*
)? "}" ws
)? ws "}"
array ::=
"[" ws (
value
("," ws value)*
)? "]" ws
)? ws "]"
string ::=
"\"" (
[^"\\\x7F\x00-\x1F] |
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F]) # escapes
)* "\"" ws
number ::= ("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)? ws
)* "\""
number ::= ("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)?
# Optional space: by convention, applied in this grammar after literal chars when allowed
ws ::= ([ \t\n] ws)?
`
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment