- is delimiter too

This commit is contained in:
p.kosyh 2009-11-05 06:05:14 +00:00
parent 52f3844c07
commit 348753c360

View file

@ -1536,6 +1536,7 @@ static int is_delim(int c)
case ':':
case '!':
case '+':
case '-':
case '?':
case '/':
return 1;
@ -1567,7 +1568,7 @@ static const char *lookup_token_or_sp(const char *ptr)
char *eptr;
const char *p = ptr;
while (*p) {
p += strcspn(p, " .,:!+?/<\t\n");
p += strcspn(p, " .,:!+-?/<\t\n");
if (*p != '<' ) {
while (is_delim(*p))
p ++;