forked from enlightenment/efl
parent
86ba91031a
commit
fb4772a769
|
@ -339,12 +339,11 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
||||||
|
|
||||||
while (*p)
|
while (*p)
|
||||||
{
|
{
|
||||||
if (*p == '"')
|
if ((*p == '\"') &&
|
||||||
memmove(p, p + 1, strlen(p));
|
((p == tok) || ((p > tok) && (*(p - 1) != '\\'))))
|
||||||
else if ((*p == '\\') && (*(p + 1) == '"'))
|
{
|
||||||
memmove(p, p + 1, strlen(p));
|
memmove(p, p + 1, strlen(p));
|
||||||
else if ((*p == '\\') && (*(p + 1) == '\\'))
|
}
|
||||||
memmove(p, p + 1, strlen(p));
|
|
||||||
else if ((*p == '\\') && (*(p + 1) == 'n'))
|
else if ((*p == '\\') && (*(p + 1) == 'n'))
|
||||||
{
|
{
|
||||||
memmove(p, p + 1, strlen(p));
|
memmove(p, p + 1, strlen(p));
|
||||||
|
@ -355,6 +354,12 @@ next_token(char *p, char *end, char **new_p, int *delim)
|
||||||
memmove(p, p + 1, strlen(p));
|
memmove(p, p + 1, strlen(p));
|
||||||
*p = '\t';
|
*p = '\t';
|
||||||
}
|
}
|
||||||
|
else if (*p == '\\')
|
||||||
|
{
|
||||||
|
memmove(p, p + 1, strlen(p));
|
||||||
|
p++;
|
||||||
|
if (*p == '\\') p++;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
p++;
|
p++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue