Skip to content

Commit e551a75

Browse files
authored
Merge the unsupported-annotation sigil into its source in the data model (#655)
1 parent 4d120e5 commit e551a75

File tree

3 files changed

+3
-15
lines changed

3 files changed

+3
-15
lines changed

spec/data-model/README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -236,15 +236,8 @@ interface Option {
236236

237237
An `UnsupportedAnnotation` represents a
238238
_private-use annotation_ not supported by the implementation or a _reserved annotation_.
239-
The `sigil` corresponds to the starting sigil of the _annotation_.
240-
The `source` is the "raw" value (i.e. escape sequences are not processed)
241-
and does not include the starting `sigil`.
242-
243-
> **Note**
244-
> Be aware that future versions of this specification
245-
> might assign meaning to _reserved annotation_ `sigil` values.
246-
> This would result in new interfaces being added to
247-
> this data model.
239+
The `source` is the "raw" value (i.e. escape sequences are not processed),
240+
including the starting sigil.
248241

249242
When parsing the syntax of a _message_ that includes a _private-use annotation_
250243
supported by the implementation,
@@ -255,7 +248,6 @@ that the implementation attaches to that _annotation_.
255248
```ts
256249
interface UnsupportedAnnotation {
257250
type: "unsupported-annotation";
258-
sigil: "!" | "%" | "^" | "&" | "*" | "+" | "<" | ">" | "?" | "~";
259251
source: string;
260252
}
261253
```

spec/data-model/message.dtd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
<!ATTLIST option name NMTOKEN #REQUIRED>
4242

4343
<!ELEMENT unsupportedAnnotation (#PCDATA)>
44-
<!ATTLIST unsupportedAnnotation sigil CDATA #REQUIRED>
4544

4645
<!ELEMENT attribute (literal | variable)?>
4746
<!ATTLIST attribute name NMTOKEN #REQUIRED>

spec/data-model/message.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,9 @@
6868
"type": "object",
6969
"properties": {
7070
"type": { "const": "unsupported-annotation" },
71-
"sigil": {
72-
"enum": ["!", "#", "%", "^", "&", "*", "<", ">", "/", "?", "~"]
73-
},
7471
"source": { "type": "string" }
7572
},
76-
"required": ["type", "sigil", "source"]
73+
"required": ["type", "source"]
7774
},
7875
"annotation": {
7976
"oneOf": [

0 commit comments

Comments
 (0)