the toplevel compilation pass needs to back out of an unclosed bit of fenced code

This commit is contained in:
david parsons
2022-04-08 23:54:20 -07:00
parent 6c1d704075
commit 543628f9f4
+7 -1
View File
@@ -1243,10 +1243,16 @@ compile_document(Line *ptr, MMIOT *f)
*/
ATTACH(source,more);
Cache checkpoint = source;
while ( (more = more->next) && !iscodefence(more, ptr->count, ptr->kind, &(f->flags)) )
ATTACH(source,more);
ptr = more;
if ( more )
ptr = more;
else {
source = checkpoint;
ptr = ptr->next;
}
}
else {
/* source; cache it up to wait for eof or the