Hi,

what is the difference between strings and keywords and how are they
processed?

>From the current usage i have the impression, that "..." and '...'
expressions are clearly strings and identifiers can be strings or
keywords depending on the context.

E.g. you can write

way[highway=residential] { text: name; }

or

way["highway"="residential"] { text: "name"; }

but sometimes quotes are needed:

{ text: "de:amtlicher_gemeindeschluessel"; }

Another example would be the yes keyword in conditions. I'd say
[oneway=yes] applies to a oneway tag with value yes, true or 1, but
[oneway="yes"] matches the literal
value "yes", only.

As keywords (unlike strings) are case insensitive, [oneway=Yes] would
work, but [Oneway=yes] or [oneway="Yes"] would not apply to a onway=yes tag.


Sebastian

_______________________________________________
Mapcss mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/mapcss

Reply via email to