Commit Diff


commit - e3b605bf1abb9627b23b85cba8f18a1877341f6b
commit + 4b5f0f640249e5e81ec745ea9a75462eb56249b2
blob - ae4d18076db38c922ca23c7c2b616c476942ce81
blob + 0146e963b5acf9816532adc88affb30e29f1c357
--- 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;