Ignore % if not followed by {
This commit is contained in:
parent
3b6b0adc44
commit
ab6fa4c74a
3
bar.c
3
bar.c
|
@ -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++;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user