Skip to content

Commit f8b1812

Browse files
committed
[css-syntax] Revert (parts of) "Revert <unicode-range> changes from CSS 2.1"
This reverts parts of commit 2359070. Namely: * The tokens have a pair of integers, rather than strings or "a range". * Keep the "Consume a unicode-range token" section as in earlier EDs. * Remove the "Set the unicode-range’s range" section: the tokenizer does no error handling / normalization beyond parsing hex digits into integers.
1 parent 42bc1dd commit f8b1812

3 files changed

Lines changed: 95 additions & 44 deletions

File tree

css-syntax/Diagrams.src.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,15 @@ <h3>Parsing</h3>
153153
'U',
154154
'u'),
155155
'+',
156-
Sequence(OneOrMore(Choice(0, NonTerminal('hex digit'), '?'), Comment('1-6 times'))),
157-
Optional(Sequence(
158-
'-',
159-
OneOrMore(NonTerminal('hex digit'), Comment('1-6 times'))))));
156+
Choice(0,
157+
Sequence(OneOrMore(NonTerminal('hex digit'), Comment('1-6 times'))),
158+
Sequence(
159+
ZeroOrMore(NonTerminal('hex digit'), Comment('1-5 times')),
160+
OneOrMore('?', Comment('1 to (6 - digits) times'))),
161+
Sequence(
162+
OneOrMore(NonTerminal('hex digit'), Comment('1-6 times')),
163+
'-',
164+
OneOrMore(NonTerminal('hex digit'), Comment('1-6 times'))))));
160165

161166
add('〈include-match〉', Diagram('~='));
162167

0 commit comments

Comments
 (0)