Fix spurious "Missing ']'" error reported by Jochen Sprickerhof

This commit is contained in:
Dianne Skoll
2024-06-01 16:30:48 -04:00
parent 34421cb10e
commit 93eca25141

View File

@@ -474,6 +474,9 @@ int ParseChar(ParsePtr p, int *err, int peek)
DestroyParser(p);
return 0;
}
while(*p->pos && (isempty(*p->pos))) {
p->pos++;
}
if (*p->pos != END_OF_EXPR) {
*err = E_MISS_END;
DestroyParser(p);