@@ -2558,7 +2558,8 @@ Consume a qualified rule</h4>
2558
2558
2559
2559
To <dfn>consume a qualified rule</dfn> ,
2560
2560
from a [=token stream=] |input|,
2561
- given an optional bool |nested| (default false):
2561
+ given an optional [=token=] |stop token|
2562
+ and an optional bool |nested| (default false):
2562
2563
2563
2564
Let |rule| be a new [=qualified rule=]
2564
2565
with its prelude, declarations, and child rules
@@ -2568,10 +2569,9 @@ Consume a qualified rule</h4>
2568
2569
2569
2570
<dl>
2570
2571
<dt> <<EOF-token>>
2571
- <dt> <<semicolon- token>>
2572
+ <dt> |stop token| (if passed)
2572
2573
<dd>
2573
2574
This is a <a>parse error</a> .
2574
- [=Discard a token=] from |input|.
2575
2575
Return nothing.
2576
2576
2577
2577
<dt> <a href="#tokendef-close-curly"><}-token></a>
@@ -2713,7 +2713,8 @@ Consume a block's contents</h4>
2713
2713
2714
2714
Otherwise, [=restore a mark=] from |input|,
2715
2715
then [=consume a qualified rule=] from |input|,
2716
- with |nested| set to true.
2716
+ with |nested| set to true,
2717
+ and <<semicolon-token>> as the |stop token|.
2717
2718
If a [=rule=] was returned,
2718
2719
append it to |rules|.
2719
2720
</dl>
0 commit comments