Re: bug in the CSS grammar definition

Brady Duga ha scritto:
> On Oct 3, 2008, at 3:23 PM, Manlio Perillo wrote:
>>
>> The problem is with this rule:
>> num        [0-9]+|[0-9]*"."[0-9]+
>>
>>
>> This does not allow negative numbers:
>>    margin-left: -20px;
> 
> Check the grammar for 'term' - I think you will find sign handled there 
> (not in the scanner).
> 

Ah, thanks!
This seems to make the grammar a bit more complex, however.


One other thing.
In G.2 Lexical scanner, there is
     The two occurrences of "\377"

However \377 occurs only one time, as far as I can see.

> --Brady
> 


Manlio Perillo

Received on Saturday, 4 October 2008 10:00:41 UTC