[Pyparsing] expression not greedy enough
Brought to you by:
ptmcg
From: Diez B. R. <de...@we...> - 2009-08-25 17:32:21
|
Hi, I'm in the process of writing a CSS-parser - and encountered a behavior that I don't understand. The attached file shows it - I expect the expression 0 100px to be parsed as two tokens, a NUMBER and an LENGTH. But instead, it seems to be parsed as NUMBER, NUMBER, IDENT. The second test-case shows that if there is only one sub-expression, things work as expected. Any suggestions? Diez |