Skip to content

Commit 3997c69

Browse files
authored
Grammar documentation updates. (#10)
* Grammar documentation updates. * Grammar documentation updates, part 2.
1 parent 13ffd87 commit 3997c69

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* JSON-Z can now be used as an ESM module. There are no functional changes, but a possible breaking change with how the package is imported:
44

55
`import JSONZ from 'json-z';` instead of `import * as JSONZ from 'json-z';`
6+
* Updated grammar documentation.
67

78
### 4.2.1-4.2.6
89

GRAMMAR.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ key-value-pair = ( string | identifier (* JSON5 *) ), inert-content, ":", value
2929
3030
identifier = identifier-start, { identifier-character };
3131
32-
(* Indentiers are in accord with the ECMAScript 5.1 specification:
32+
(* Identifiers are in accord with the ECMAScript 5.1 specification:
3333
https://262.ecma-international.org/5.1/#sec-7.6
3434
3535
Note: Identifiers can also use \uXXXX-style escapes with codepoints corresponding
@@ -82,7 +82,7 @@ identifier-character = identifier-start | decimal-digit | "\u200C" (* ZERO WIDTH
8282
8383
(* Unicode spacing combining mark: https://www.compart.com/en/unicode/category/Mc
8484
Unicode non-spacing mark: https://www.compart.com/en/unicode/category/Mc
85-
Unicode decimal digit number: hhttps://www.compart.com/en/unicode/category/Nd
85+
Unicode decimal digit number: https://www.compart.com/en/unicode/category/Nd
8686
Unicode connector punctuation: https://www.compart.com/en/unicode/category/Pc *)
8787
8888
@endebnf
@@ -97,7 +97,7 @@ number = [sign], unsigned-number ;
9797
9898
unsigned-number = integer | floating | symbolic-number (* JSON5 *) ;
9999
100-
integer = ( binary (* JSON-Z *) | octal (* JSON-Z *) | decimal | hex ), [ "n" ] (* JSON-Z *) ;
100+
integer = ( binary (* JSON-Z *) | octal (* JSON-Z *) | decimal | hex (* JSON5 *) ), [ "n" ] (* JSON-Z *) ;
101101
102102
binary = "0b", binary-digit, { [ "_" ], binary-digit } ;
103103

docs/characters.png

13.7 KB
Loading

docs/numbers.png

1.82 KB
Loading

docs/overview.png

16.5 KB
Loading

0 commit comments

Comments
 (0)