Commit Diff
--- lexicgen.c +++ lexicgen.c @@ -91,7 +91,7 @@ static char *parse_string (const char **s, char end) if (ch == '\0') return NULL; - esc = (ch == '\\'); + esc = !esc && (ch == '\\'); if (len == cap) { cap *= 2;
--- lexicgen.c +++ lexicgen.c @@ -91,7 +91,7 @@ static char *parse_string (const char **s, char end) if (ch == '\0') return NULL; - esc = (ch == '\\'); + esc = !esc && (ch == '\\'); if (len == cap) { cap *= 2;