File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2553,7 +2553,7 @@ attribute ::= <versionsuffix> 🔗
25532553 | <externalid> 🏷️
25542554versionsuffix ::= (versionsuffix <semversuffixstr>) 🔗
25552555implements ::= (implements <interfacenamestr>) 🏷️
2556- externalid ::= (external-id <string >) 🏷️
2556+ externalid ::= (external-id <name >) 🏷️
25572557```
25582558Imports and exports both have a * name* (` externnamestr ` ) and a list of
25592559* attributes* (` attribute* ` ). Imports always include a type (` externtype ` ).
Original file line number Diff line number Diff line change @@ -1011,7 +1011,7 @@ token ::= whitespace
10111011 | keyword
10121012 | integer
10131013 | identifier
1014- | string
1014+ | string-literal
10151015```
10161016
10171017Whitespace and comments are ignored when parsing structures defined elsewhere
@@ -1108,13 +1108,17 @@ sequence of digits:
11081108integer ::= [0-9]+
11091109```
11101110
1111- ### Strings
1111+ ### Strings Literals
11121112
11131113WIT string literals are double-quoted and use the same text format as the Core
1114- WebAssembly text format's [ ` string ` ] literal. For example ` "a" ` , ` "☃︎" ` , ` "\7f" `
1115- and ` "\u{7fff}" ` are all ` string ` literals.
1114+ WebAssembly text format's [ ` name ` ] literal. For example ` "a" ` , ` "☃︎" ` , ` "\7f" `
1115+ and ` "\u{7fff}" ` are all ` name ` literals.
11161116
1117- [ `string` ] : https://webassembly.github.io/spec/core/text/values.html#text-string
1117+ ``` ebnf
1118+ string-literal ::= <core:name>
1119+ ```
1120+
1121+ [ `name` ] : https://webassembly.github.io/spec/core/text/values.html#text-name
11181122
11191123## Top-level items
11201124
@@ -1442,7 +1446,7 @@ export-item ::= external-id? 'export' id ':' extern-type
14421446import-item ::= external-id? 'import' id ':' extern-type
14431447 | 'import' use-path ';'
14441448
1445- external-id ::= '@external-id' '(' string ')' 🏷️
1449+ external-id ::= '@external-id' '(' string-literal ')' 🏷️
14461450
14471451extern-type ::= func-type ';'
14481452 | 'interface' '{' interface-items* '}'
You can’t perform that action at this time.
0 commit comments