Hello.

On Wednesday 07 July 2010 16:36:56 Sebastian Spaeth wrote:
> > ^([a-z-]+)[ ]*:[ ]*("([^\x22]*)"|([0-9,.]+)|(#[,0-9a-fA-F]+)+)
(1)
> I don't like it :-). Using eval it is clear something dynamic is going
> to happen. What with the "2*2" bar? Is
>    name: 2*2
> a string ('2*2') or to be evaluated?
> What if I want to draw name tags for large features only?
>   name: eval("if ((area)>100) (tag(name)) ('')")

name: cond((area)>100,(tag(name)),"");
(2)

> Still that easy to identify? 

Sure. That regexp (1) will fail on this, so (2) is clearly "eval".

-- 
WBR, Andrew

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to