Skip to content

Introduce new extended attribute grammars #1503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 76 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6802,7 +6802,7 @@ grammar symbol matches nearly any sequence of tokens, however the
defined in this document only accept a more restricted syntax.
Any extended attribute encountered in an
[=IDL fragment=] is
matched against the following five grammar symbols to determine
matched against the following grammar symbols to determine
which form (or forms) it is in:

<table class="vert data">
Expand Down Expand Up @@ -6855,6 +6855,50 @@ which form (or forms) it is in:
<code>[PutForwards=name]</code>
</td>
</tr>
<tr>
<td>
<emu-nt><a href="#prod-ExtendedAttributeString">ExtendedAttributeString</a></emu-nt>
</td>
<td>
<dfn id="dfn-xattr-string" for="extended attribute" export>takes a string</dfn>
</td>
<td>
<code>[Reflect="popover"]</code>
</td>
</tr>
<tr>
<td>
<emu-nt><a href="#prod-ExtendedAttributeInteger">ExtendedAttributeInteger</a></emu-nt>
</td>
<td>
<dfn id="dfn-xattr-integer" for="extended attribute" export>takes an integer</dfn>
</td>
<td>
<code>[ReflectDefault=2]</code>
</td>
</tr>
<tr>
<td>
<emu-nt><a href="#prod-ExtendedAttributeDecimal">ExtendedAttributeDecimal</a></emu-nt>
</td>
<td>
<dfn id="dfn-xattr-decimal" for="extended attribute" export>takes a decimal</dfn>
</td>
<td>
<code>[ReflectDefault=2.0]</code>
</td>
</tr>
<tr>
<td>
<emu-nt><a href="#prod-ExtendedAttributeIntegerList">ExtendedAttributeIntegerList</a></emu-nt>
</td>
<td>
<dfn id="dfn-xattr-integer-list" for="extended attribute" export>takes an integer list</dfn>
</td>
<td>
<code>[ReflectRange=(2, 600)]</code>
</td>
</tr>
<tr>
<td>
<emu-nt><a href="#prod-ExtendedAttributeIdentList">ExtendedAttributeIdentList</a></emu-nt>
Expand Down Expand Up @@ -6988,6 +7032,17 @@ five forms are allowed.
ε
</pre>

<pre class="grammar" id="prod-IntegerList">
IntegerList :
integer Integers
</pre>

<pre class="grammar" id="prod-Integers">
Integers :
"," integer Integers
ε
</pre>

<pre class="grammar" id="prod-ExtendedAttributeNoArgs">
ExtendedAttributeNoArgs :
identifier
Expand All @@ -7003,6 +7058,21 @@ five forms are allowed.
identifier "=" identifier
</pre>

<pre class="grammar" id="prod-ExtendedAttributeString">
ExtendedAttributeString :
identifier "=" string
</pre>

<pre class="grammar" id="prod-ExtendedAttributeInteger">
ExtendedAttributeInteger :
identifier "=" integer
</pre>

<pre class="grammar" id="prod-ExtendedAttributeDecimal">
ExtendedAttributeDecimal :
identifier "=" decimal
</pre>

<pre class="grammar" id="prod-ExtendedAttributeWildcard">
ExtendedAttributeWildcard :
identifier "=" "*"
Expand All @@ -7013,6 +7083,11 @@ five forms are allowed.
identifier "=" "(" IdentifierList ")"
</pre>

<pre class="grammar" id="prod-ExtendedAttributeIntegerList">
ExtendedAttributeIntegerList :
identifier "=" "(" IntegerList ")"
</pre>

<pre class="grammar" id="prod-ExtendedAttributeNamedArgList">
ExtendedAttributeNamedArgList :
identifier "=" identifier "(" ArgumentList ")"
Expand Down