@@ -58,10 +58,10 @@ comment ::= '//' character-that-isnt-a-newline*
5858 | '/*' any-unicode-character* '*/'
5959```
6060
61- There is a special type of comment called ` documentation comment ` . A
61+ There is a special type of comment called ` documentation comment ` . A
6262` doc-comment ` is either a line comment preceded with ` /// ` whichends at the next
63- newline (` \n ` ) character or it's a block comment which starts with ` /** ` and ends
64- with ` */ ` . Note that block comments are allowed to be nested and their delimiters
63+ newline (` \n ` ) character or it's a block comment which starts with ` /** ` and ends
64+ with ` */ ` . Note that block comments are allowed to be nested and their delimiters
6565must be balanced
6666
6767``` wit
@@ -72,7 +72,7 @@ doc-comment ::= '///' character-that-isnt-a-newline*
7272### Operators
7373
7474There are some common operators in the lexical structure of ` wit ` used for
75- various constructs. Note that delimiters such as ` { ` , ` ( ` , and ` [ ` must all be
75+ various constructs. Note that delimiters such as ` { ` and ` ( ` must all be
7676balanced.
7777
7878``` wit
@@ -129,9 +129,7 @@ identifier ::= keylike+
129129 | string
130130
131131keylike ::= '-'
132- | '_'
133132 | 'a' ... 'z'
134- | 'A' ... 'Z'
135133 | '0' ... '9'
136134```
137135
@@ -152,6 +150,9 @@ escape ::= '\\'
152150 | '\r'
153151```
154152
153+ In subsequent code blocks of lexical definitions, ` identifier ` may be referred
154+ to as ` id ` for short.
155+
155156## Top-level items
156157
157158A ` wit ` document is a sequence of items specified at the top level. These items
@@ -454,6 +455,7 @@ ty ::= 'u8' | 'u16' | 'u32' | 'u64'
454455 | 'char'
455456 | 'bool'
456457 | 'string'
458+ | 'unit'
457459 | tuple
458460 | list
459461 | option
@@ -470,9 +472,7 @@ list ::= 'list' '<' ty '>'
470472
471473option ::= 'option' '<' ty '>'
472474
473- expected ::= 'expected' '<' expected-ty ',' expected-ty '>'
474- expected-ty ::= '_'
475- | ty
475+ expected ::= 'expected' '<' ty ',' ty '>'
476476
477477future ::= 'future' '<' ty '>'
478478
0 commit comments