Skip to content

Commit

Permalink
Allow async and includes as member names (#769)
Browse files Browse the repository at this point in the history
* Allow `async` and `includes` as member names

* Allow "async" as a valid argument name

* OptionalOperationName
  • Loading branch information
saschanaz authored and bzbarsky committed Aug 14, 2019
1 parent a08d398 commit 94c320e
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ in the declaration:
* For [=operations=], the
<emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t> token that appears
after the return type but before the opening parenthesis (that is,
one that is matched as part of the <emu-nt><a href="#prod-OptionalIdentifier">OptionalIdentifier</a></emu-nt>
one that is matched as part of the <emu-nt><a href="#prod-OptionalOperationName">OptionalOperationName</a></emu-nt>
grammar symbol in an <emu-nt><a href="#prod-OperationRest">OperationRest</a></emu-nt>) determines the identifier of the operation. If
there is no such <emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t> token,
then the operation does not have an identifier.
Expand Down Expand Up @@ -677,6 +677,7 @@ underscore.

<pre class="grammar" id="prod-ArgumentNameKeyword">
ArgumentNameKeyword :
"async"
"attribute"
"callback"
"const"
Expand Down Expand Up @@ -1976,6 +1977,7 @@ are applicable only to regular attributes:

<pre class="grammar" id="prod-AttributeNameKeyword">
AttributeNameKeyword :
"async"
"required"
</pre>

Expand Down Expand Up @@ -2420,15 +2422,26 @@ The following extended attributes are applicable to operations:

<pre class="grammar" id="prod-OperationRest">
OperationRest :
OptionalIdentifier "(" ArgumentList ")" ";"
OptionalOperationName "(" ArgumentList ")" ";"
</pre>

<pre class="grammar" id="prod-OptionalIdentifier">
OptionalIdentifier :
identifier
<pre class="grammar" id="prod-OptionalOperationName">
OptionalOperationName :
OperationName
ε
</pre>

<pre class="grammar" id="prod-OperationName">
OperationName :
OperationNameKeyword
identifier
</pre>

<pre class="grammar" id="prod-OperationNameKeyword">
OperationNameKeyword :
"includes"
</pre>

<pre class="grammar" id="prod-ArgumentList">
ArgumentList :
Argument Arguments
Expand Down

0 comments on commit 94c320e

Please sign in to comment.