[Mapcss] Selector syntax

Thomas Davie tom.davie at gmail.com
Sat Mar 12 19:16:57 GMT 2011


The mapCSS 0.2 wiki page states that we may not write
relation[type=route]
 way[highway]
  { stroke-color: red; }
as
relation [type=route]
  way [highway]
   { stroke-color: red; }
I see no reason why allowing this would make the grammar ambiguous, and disallowing it makes the grammar significantly more complex (we can't simply ignore whitespace tokens any more, and have to pollute every grammar rule with whitspace? between pretty much all tokens).

What's the reason for this restriction?

Tom Davie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/mapcss/attachments/20110312/50fca0a7/attachment.html>


More information about the Mapcss mailing list