Skip to content

Commit df7051f

Browse files
authored
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 3780adc commit df7051f

File tree

1 file changed

+0
-36
lines changed

1 file changed

+0
-36
lines changed

WIT.md

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -116,42 +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-
| '_'
133-
| 'a' ... 'z'
134-
| 'A' ... 'Z'
135-
| '0' ... '9'
136-
```
137-
138-
Strings are intended to be the same format as strings in the WebAssembly text
139-
format except that they're always valid unicode and don't have raw byte escapes:
140-
141-
```wit
142-
string ::= '"' stringchar* '"'
143-
144-
stringchar ::= c if c == \u{9} or (\u{20} <= c <= \u{10ffff} and c != \u{7f}
145-
| escape
146-
147-
escape ::= '\\'
148-
| '\"'
149-
| '\''
150-
| '\t'
151-
| '\n'
152-
| '\r'
153-
```
154-
155119
## Top-level items
156120

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

0 commit comments

Comments
 (0)