This commit is contained in:
Loic Deridder
2025-02-18 11:46:40 +01:00
parent 3422c480d3
commit 1d4b97ed9a

View File

@@ -60,9 +60,9 @@ int goto_nxt_space(char *str)
i++; i++;
while (str[i] && (!is_space(str[i]) || (in_dquote || in_squote))) while (str[i] && (!is_space(str[i]) || (in_dquote || in_squote)))
{ {
if (str[i] == '\'') if (str[i] == '\'' && !in_dquote)
in_squote = !in_squote; in_squote = !in_squote;
else if (str[i] == '\"') else if (str[i] == '\"' && !in_squote)
in_dquote = !in_dquote; in_dquote = !in_dquote;
i++; i++;
} }