Re: Allow whitespace after "rect" function identifier

Thomas 'PointedEars' Lahn wrote:
> You suggest allowing parantheses of functions to be preceded by
> whitespace, like
> 
>   border-color:rgb (0, 0, 0) rgb (127, 0, 0) rgb (255, 0, 0) rgb
> (0, 127, 0);
> 
> Since that would be optional to support the current grammar, too,
> composed properties are no longer as easy/efficient to parse

One major issue here is that one needs a way to differentiate between 
"rgb(" and a system color named "rgb" in this situation.

I suppose that you could force the issue by declaring any identifier 
followed by a "S* (" production to be the equivalent of the current 
"function" token.  That would possibly preclude later uses of '(' ')' to 
denote, eg, grouping.  That may be fine, but it's not a decision to make 
lightly.

-Boris

Received on Sunday, 4 April 2004 13:49:20 UTC