mirror of
https://github.com/Ed94/metadesk.git
synced 2026-08-06 15:48:47 +00:00
possible bugfix for eating up newlines too ambitiously when ending unscoped sets
This commit is contained in:
+8
-2
@@ -2440,12 +2440,18 @@ MD_ParseNodeSet(MD_Arena *arena, MD_String8 string, MD_u64 offset, MD_Node *pare
|
|||||||
if(potential_closer.kind == MD_TokenKind_Newline)
|
if(potential_closer.kind == MD_TokenKind_Newline)
|
||||||
{
|
{
|
||||||
closer_check_off += potential_closer.raw_string.size;
|
closer_check_off += potential_closer.raw_string.size;
|
||||||
off = closer_check_off;
|
// TODO(rjf): As far as I can tell, we can't actually do this,
|
||||||
|
// because higher-level unscoped sets may depend on this newline
|
||||||
|
// so they can be terminated.
|
||||||
|
// off = closer_check_off;
|
||||||
|
|
||||||
// NOTE(rjf): always terminate with a newline if we have >0 children
|
// NOTE(rjf): always terminate with a newline if we have >0 children
|
||||||
if(parsed_child_count > 0)
|
if(parsed_child_count > 0)
|
||||||
{
|
{
|
||||||
off = closer_check_off;
|
// TODO(rjf): As far as I can tell, we can't actually do this,
|
||||||
|
// because higher-level unscoped sets may depend on this newline
|
||||||
|
// so they can be terminated.
|
||||||
|
// off = closer_check_off;
|
||||||
got_closer = 1;
|
got_closer = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user