mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
the toplevel compilation pass needs to back out of an unclosed bit of fenced code
This commit is contained in:
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user