[css-syntax] Consume a component value

ED 2014-03-05:

input: {}

5.4.6 Consume a component value

Consume the next input token.
[current input token is {]

If the current input token is a <{-token>, <[-token>, or <(-token>, 
consume a simple block and return it.

-> 5.4.7 Consume a simple block

Note: This algorithm assumes that the next input token has already been 
checked to be an <{-token>, <[-token>, or <(-token>.
[No: the _current_ input token is {]

Consume the next input token.
[current input token is }]

The ending token is the mirror variant of the current input token. (E.g. 
if it was called with <[-token>, the ending token is <]-token>.)
[Huh?]

---
Should 5.4.6 read

If the _next_ input token is a ...

instead?
-- 
Johannes Koch
In te domine speravi; non confundar in aeternum.
                             (Te Deum, 4th cent.)

Received on Wednesday, 12 March 2014 22:01:56 UTC