Re: [css3-page] Error in grammar of section 3.4.1

On Mon, Apr 23, 2012 at 3:28 PM, Simon Sapin <simon.sapin@kozea.fr> wrote:
> Le 23/04/2012 23:46, Tab Atkins Jr. a écrit :
>> <declaration>  matches the declaration production in the current CSS2.1
>> grammar, but capped with a ';' token at the end.
>
>
> Yes, except if the declaration is followed by '}' (the end of the block). In
> this case, the ';' is optional. And consecutive ';' without a declaration
> in-between are also allowed.
>
> Can we make a definition with this kind of exceptions?

The parser should handle that automatically - when it is parsing a
declaration, if it encounters an unmatched close-brace or an at-rule,
it should imply the end of the declaration.  I haven't gotten to that
part of Syntax yet.

~TJ

Received on Monday, 23 April 2012 23:04:39 UTC