Skip to content

Commit 090f1b5

Browse files
committed
[css-syntax-3] Fix the loop *properly*, to not change top-level behavior of '@foo;;foo{}'.
1 parent 4b19c8e commit 090f1b5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

css-syntax-3/Overview.bs

+5-4
Original file line numberDiff line numberDiff line change
@@ -2558,7 +2558,8 @@ Consume a qualified rule</h4>
25582558

25592559
To <dfn>consume a qualified rule</dfn>,
25602560
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):
25622563

25632564
Let |rule| be a new [=qualified rule=]
25642565
with its prelude, declarations, and child rules
@@ -2568,10 +2569,9 @@ Consume a qualified rule</h4>
25682569

25692570
<dl>
25702571
<dt><<EOF-token>>
2571-
<dt><<semicolon-token>>
2572+
<dt>|stop token| (if passed)
25722573
<dd>
25732574
This is a <a>parse error</a>.
2574-
[=Discard a token=] from |input|.
25752575
Return nothing.
25762576

25772577
<dt><a href="#tokendef-close-curly">&lt;}-token></a>
@@ -2713,7 +2713,8 @@ Consume a block's contents</h4>
27132713

27142714
Otherwise, [=restore a mark=] from |input|,
27152715
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|.
27172718
If a [=rule=] was returned,
27182719
append it to |rules|.
27192720
</dl>

0 commit comments

Comments
 (0)