Negative numbers in core grammar

I was asked the other day where the tokenization rules in  
http://www.w3.org/TR/CSS2/syndata.html#tokenization handle negative  
numbers. The production of num is [0-9]+|[0-9]*\.[0-9]+ which seems to  
handle non-negative numbers only. (It does not seem to allow for a "-"  
character, or for a "+" character for that matter.)

I would love to know what I am missing since this definition has not  
changed for well over a decade.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Saturday, 1 October 2011 09:52:50 UTC