OpenStreetPad's grammar for this specifies:
Selector ::= <Subselector>+ <LayerIdentifier>?;
LayerIdentifier ::= '::' 'Identifier';
Subselector ::= <Object> 'Whitespace' | <Object> <Zoom> <Test>* | <Object>
<Test>* | <Object> 'Whitespace' <Class>;"
i.e. layer identifiers come at the end of selectors, not at the end of sub
selectors, so indeed, your latter example would not parse.
Bob
if (*ra4 != 0xffc78948) { return false; }
On 22 Apr 2012, at 13:36, Kal Conley wrote:
> Hi,
> I would like to get a clarification on the proposed ::subpart syntax.
> Would happens in cases with combinators? In particular the following is
> valid:
>
> way > node::A {
>
> but what about:
>
> way::B > node::A {
>
> I think these cases should be syntax errors. How are parsers in the wild
> dealing with this currently?
>
> Thanks,
> Kal
>
> _______________________________________________
> Mapcss mailing list
> [email protected]
> http://lists.openstreetmap.org/listinfo/mapcss
_______________________________________________
Mapcss mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/mapcss