Juha,
On Wed, May 5, 2010 at 1:10 PM, Juha Heinanen jh@tutpro.com wrote:
i tried to define route
route [+358] { ... }
but got syntax error. is there a good reason why + is not allowed in name of route?
This is not intentional; it's simply the result of how the configuration parser is written now. When parsing the route statement above, the parser expects one of ID,NUMBER,STRING tokens and the token NUMBER does not allow '+' at the beginning.
There's more surprises like that. For example, one cannot use an arbitrary text token as route name. For example if you write:
route[myself]
then you get a parser error because 'myself' happens to be a reserved word and has its own token.
You can fix this by quoting the name: route["+358"] or route["myself"]
-Jan