Skip to content

Commit 94c320e

Browse files
saschanazbzbarsky
authored andcommitted
Allow async and includes as member names (#769)
* Allow `async` and `includes` as member names * Allow "async" as a valid argument name * OptionalOperationName
1 parent a08d398 commit 94c320e

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

index.bs

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ in the declaration:
640640
* For [=operations=], the
641641
<emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t> token that appears
642642
after the return type but before the opening parenthesis (that is,
643-
one that is matched as part of the <emu-nt><a href="#prod-OptionalIdentifier">OptionalIdentifier</a></emu-nt>
643+
one that is matched as part of the <emu-nt><a href="#prod-OptionalOperationName">OptionalOperationName</a></emu-nt>
644644
grammar symbol in an <emu-nt><a href="#prod-OperationRest">OperationRest</a></emu-nt>) determines the identifier of the operation. If
645645
there is no such <emu-t class="regex"><a href="#prod-identifier">identifier</a></emu-t> token,
646646
then the operation does not have an identifier.
@@ -677,6 +677,7 @@ underscore.
677677

678678
<pre class="grammar" id="prod-ArgumentNameKeyword">
679679
ArgumentNameKeyword :
680+
"async"
680681
"attribute"
681682
"callback"
682683
"const"
@@ -1976,6 +1977,7 @@ are applicable only to regular attributes:
19761977

19771978
<pre class="grammar" id="prod-AttributeNameKeyword">
19781979
AttributeNameKeyword :
1980+
"async"
19791981
"required"
19801982
</pre>
19811983

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

24212423
<pre class="grammar" id="prod-OperationRest">
24222424
OperationRest :
2423-
OptionalIdentifier "(" ArgumentList ")" ";"
2425+
OptionalOperationName "(" ArgumentList ")" ";"
24242426
</pre>
24252427

2426-
<pre class="grammar" id="prod-OptionalIdentifier">
2427-
OptionalIdentifier :
2428-
identifier
2428+
<pre class="grammar" id="prod-OptionalOperationName">
2429+
OptionalOperationName :
2430+
OperationName
24292431
ε
24302432
</pre>
24312433

2434+
<pre class="grammar" id="prod-OperationName">
2435+
OperationName :
2436+
OperationNameKeyword
2437+
identifier
2438+
</pre>
2439+
2440+
<pre class="grammar" id="prod-OperationNameKeyword">
2441+
OperationNameKeyword :
2442+
"includes"
2443+
</pre>
2444+
24322445
<pre class="grammar" id="prod-ArgumentList">
24332446
ArgumentList :
24342447
Argument Arguments

0 commit comments

Comments
 (0)