Commit b481b31e b481b31ede6b8fe148d7c13423be6f2e371031f0 by Sergey Poznyakoff

(yylex): allow for '-' in field names. Notice,

that when the dash is used to mean 'range' and the first message in the
range is not numeric, there should be whitespace between
them.
1 parent 0264b0fb
...@@ -266,7 +266,7 @@ yylex() ...@@ -266,7 +266,7 @@ yylex()
266 char *p = cur_p; 266 char *p = cur_p;
267 int len; 267 int len;
268 268
269 while (*cur_p && *cur_p != ',' && *cur_p != '-' && *cur_p != ':') 269 while (*cur_p && *cur_p != ',' && *cur_p != ':')
270 cur_p++; 270 cur_p++;
271 len = cur_p - p + 1; 271 len = cur_p - p + 1;
272 yylval.string = xmalloc (len); 272 yylval.string = xmalloc (len);
......