Re: [css3-syntax] Parser rewritten as recursive-descent, review requested

5.4.5. Consume a list of declarationsident token"Initialize a
temporary list initially filled with the current input token.
Repeatedly consume a component value from the next input token until a
semicolon token or EOF token is returned,"
Having the following CSS:.a { top: 10px } .b { top: 20px; left 30px }
If we parse the first rule declarations: { top: 10px },  the parser
will now have a simple block containing WS, IDENT, COLON, WS,
DIMMENSION, WS .Even if the declaration is valid it will not be
returned at 5.4.5. because neither semicolon or EOF are found, unless
EOF stands here as the end of this simple block stream and not the end
of the overall file.So I think that at 54.5. the declaration should
be returned by an SEMICOLON, EOF or at the end of the block.
Thank you,
Mircea Piturca
www.typefolly.com

Received on Wednesday, 13 February 2013 15:53:37 UTC