<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">OpenStreetPad's grammar for this specifies:<div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Consolas; color: rgb(135, 135, 135); ">Selector        ::= <Subselector>+ <LayerIdentifier>?;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Consolas; color: rgb(135, 135, 135); ">LayerIdentifier ::= '::' 'Identifier';</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Consolas; color: rgb(135, 135, 135); ">Subselector     ::= <Object> 'Whitespace' | <Object> <Zoom> <Test>* | <Object> <Test>* | <Object> 'Whitespace' <Class>;"</div><div><br></div><div>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.</div><div><br></div><div>Bob</div><div apple-content-edited="true">
<div><span class="Apple-style-span" style="font-family: Arial; "><pre>if (*ra4 != 0xffc78948) { return false; }</pre></span></div>
</div>
<br><div><div>On 22 Apr 2012, at 13:36, Kal Conley wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br>I would like to get a clarification on the proposed ::subpart syntax.<br>Would happens in cases with combinators? In particular the following is<br>valid:<br><br>way > node::A {<br><br>but what about:<br><br>way::B > node::A {<br><br>I think these cases should be syntax errors. How are parsers in the wild<br>dealing with this currently?<br><br>Thanks,<br>Kal<br><br>_______________________________________________<br>Mapcss mailing list<br><a href="mailto:Mapcss@openstreetmap.org">Mapcss@openstreetmap.org</a><br>http://lists.openstreetmap.org/listinfo/mapcss<br></div></blockquote></div><br></div></body></html>