- is delimiter too
This commit is contained in:
parent
52f3844c07
commit
348753c360
|
@ -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 ++;
|
||||
|
|
Reference in a new issue