tokenize: consider = to be equivalent to whitespace

This commit is contained in:
Ariadne Conill 2020-09-14 16:50:31 -06:00
parent f9d0fbb4c3
commit 537a56414a

View file

@ -23,11 +23,11 @@ lif_next_token(char **buf)
{
char *out = *buf;
while (*out && isspace(*out))
while (*out && (isspace(*out) || *out == '='))
out++;
char *end = out;
while (*end && !isspace(*end))
while (*end && !isspace(*end) && *out != '=')
end++;
*end++ = '\0';