Skip to content

Commit 3ce2d5d

Browse files
committed
Remove duplicate definition of identifiers from WIT.md
WIT.md had an outdated definition of identifiers, which only allowed ASCII and included the old method of putting identifiers in quotes to escape keywords. This removes that definition in favour of the up-to-date definition further down in the file.
1 parent 2679e06 commit 3ce2d5d

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

WIT.md

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -116,43 +116,6 @@ keyword ::= 'use'
116116
| 'stream'
117117
```
118118

119-
### Identifiers
120-
121-
Identifiers are used for the names of functions, parameters, etc. Identifiers
122-
can either be specified raw as a sequence of characters or as a string literal.
123-
As a string literal an identifier is allowed to be any valid unicode string,
124-
including those that might overlap otherwise with keywords. For example an
125-
identifier can't be `use` but it can be `"use"`:
126-
127-
```wit
128-
identifier ::= keylike+
129-
| string
130-
131-
keylike ::= '-'
132-
| 'a' ... 'z'
133-
| '0' ... '9'
134-
```
135-
136-
Strings are intended to be the same format as strings in the WebAssembly text
137-
format except that they're always valid unicode and don't have raw byte escapes:
138-
139-
```wit
140-
string ::= '"' stringchar* '"'
141-
142-
stringchar ::= c if c == \u{9} or (\u{20} <= c <= \u{10ffff} and c != \u{7f}
143-
| escape
144-
145-
escape ::= '\\'
146-
| '\"'
147-
| '\''
148-
| '\t'
149-
| '\n'
150-
| '\r'
151-
```
152-
153-
In subsequent code blocks of lexical definitions, `identifier` may be referred
154-
to as `id` for short.
155-
156119
## Top-level items
157120

158121
A `wit` document is a sequence of items specified at the top level. These items

0 commit comments

Comments
 (0)