Ignore % if not followed by {

This commit is contained in:
krypt-n 2015-02-24 14:05:38 +01:00
parent 3b6b0adc44
commit ab6fa4c74a

3
bar.c
View File

@ -602,7 +602,8 @@ parse (char *text)
if (*p == '\0' || *p == '\n') if (*p == '\0' || *p == '\n')
break; break;
if (*p == '%' && p++ && *p == '{' && (block_end = strchr(p++, '}'))) { if (*p == '%' && *(p+1) == '{' && (block_end = strchr(p+2, '}'))) {
p += 2;
while (p < block_end) { while (p < block_end) {
while (isspace(*p)) while (isspace(*p))
p++; p++;