W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [CSS21][CSS3] Grammar Error

From: Mark <markjord@gmail.com>
Date: Thu, 2 Sep 2010 22:39:07 +0100
Message-ID: <AANLkTimmtvXW4bkiM8UVip1EcQdwshkcDK37A6j=bNtc@mail.gmail.com>
To: Jorrit Vermeiren <mercator+w3c@gmail.com>
Cc: www-style@w3.org
On Thu, Sep 2, 2010 at 1:32 PM, Jorrit Vermeiren <mercator+w3c@gmail.com> wrote:
> On Thu, Sep 2, 2010 at 09:49, Mark <markjord@gmail.com> wrote:
>> If anyone cares, there's another error in the grammar:-
>>
>> ruleset
>>  : selector [ ',' S* selector ]*
>>    '{' S* declaration? [ ';' S* declaration? ]* '}' S*
>>
>> This rule won't parse 99.9% of existing CSS files. There is a space
>> missing from the front before '{'. It should be:-
>>
>> ruleset
>>  : selector [ ',' S* selector ]*
>>    S* '{' S* declaration? [ ';' S* declaration? ]* '}' S*
>
> I don't think this is an error. The "selector" production already
> takes care of the white space following it:
>
> selector
>  : simple_selector [ combinator selector | S+ [ combinator? selector ]? ]?
>
>
> Regards,
>
> Jorrit
>

If I only have a simple_selector, how is it taken care of?  BTW I'm
referring to the grammar in the appendix.
Received on Thursday, 2 September 2010 21:39:35 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT