(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.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment