@@ -586,33 +586,24 @@ Parsing the syntax string {#parsing-syntax}
586
586
preprocessed as specified in [[css-syntax-3]] .
587
587
Let |descriptor| be an initially empty [=list=] of <a>syntax components</a> .
588
588
589
- 5. Repeatedly consume the <a>next input code point</a> from |stream|:
589
+ 5. <a>Consume a syntax component</a> from |stream|.
590
+ If failure was returned,
591
+ return failure;
592
+ otherwise,
593
+ [=list/append=] the returned value to |descriptor|.
590
594
591
- : <a>whitespace</a>
592
- :: Do nothing.
595
+ Consume as much <a>whitespace</a> as possible from |stream|.
593
596
597
+ Consume the <a>next input code point</a> in |stream|:
594
598
: EOF
595
- :: If |descriptor|’s [=list/size=] is greater than zero,
596
- return |descriptor|;
597
- otherwise, return failure.
599
+ :: return |descriptor|.
598
600
599
601
: U+007C VERTICAL LINE (|)
600
- :: If |descriptor|’s [=list/size=] is greater than zero,
601
- <a>consume a syntax component</a> from |stream|.
602
- If failure was returned,
603
- return failure;
604
- otherwise,
605
- [=list/append=] the returned value to |descriptor|.
606
-
607
- If |descriptor|’s [=list/size=] is zero, return failure.
608
-
609
- : anything else
610
- :: <a>Reconsume the current input code point</a> in |stream|.
611
- <a>Consume a syntax component</a> from |stream|.
612
- If failure was returned,
613
- return failure;
614
- otherwise,
615
- [=list/append=] the returned value to |descriptor|.
602
+ :: Repeat step 5.
603
+
604
+ : Anything else:
605
+ :: Return failure.
606
+
616
607
</div>
617
608
618
609
### Consume a syntax component ### {#consume-syntax-component}
@@ -625,7 +616,7 @@ Parsing the syntax string {#parsing-syntax}
625
616
Let |component| be a new <a>syntax component</a> with its |name| and |multiplier| initially
626
617
empty.
627
618
628
- Consume the <a>next input code point</a> |stream|:
619
+ Consume the <a>next input code point</a> in |stream|:
629
620
630
621
: U+003C LESS-THAN SIGN (<)
631
622
:: <a>Consume a data type name</a> from |stream|.
0 commit comments