Revert "config handles comments better"

This reverts commit e9c3a9016f.
master
Drew DeVault 9 years ago
parent 2139001c9f
commit 868cb3ca71

@ -41,7 +41,7 @@ void strip_comments(char *str) {
} else if (str[i] == '\'' && !in_string) { } else if (str[i] == '\'' && !in_string) {
in_character = !in_character; in_character = !in_character;
} else if (!in_character && !in_string) { } else if (!in_character && !in_string) {
if (str[i] == '#') { if (str[i] == '#' && i == 0) {
str[i] = '\0'; str[i] = '\0';
break; break;
} }

Loading…
Cancel
Save