set implicitly-delimited separator set node flags correctly

This commit is contained in:
Ryan Fleury
2021-09-16 23:31:28 -06:00
parent bd754c1816
commit 07ff2afa72
2 changed files with 3 additions and 14 deletions
+2 -10
View File
@@ -510,7 +510,6 @@ static MD_Node _md_nil_node =
0, // flags
MD_ZERO_STRUCT, // string
MD_ZERO_STRUCT, // raw_string
0xdeadffffffffffull, // string_hash
0, // at
&_md_nil_node, // ref_target
MD_ZERO_STRUCT, // prev_comment
@@ -2165,10 +2164,10 @@ MD_ParseNodeSet(MD_Arena *arena, MD_String8 string, MD_u64 offset, MD_Node *pare
if(potential_closer.kind == MD_TokenKind_Reserved)
{
MD_u8 c = potential_closer.raw_string.str[0];
if (c == ',' || c == ';')
if(c == ',' || c == ';')
{
closer_check_off += potential_closer.raw_string.size;
off = closer_check_off;
closer_check_off += potential_closer.raw_string.size;
break;
}
else if(c == '}' || c == ']'|| c == ')')
@@ -3401,13 +3400,6 @@ MD_S8ListPush(arena, out, indent_string);\
MD_ReleaseScratch(scratch);
}
//- rjf: node string hash
if(flags & MD_GenerateFlag_StringHash)
{
MD_PrintIndent(indent);
MD_S8ListPush(arena, out, MD_S8Fmt(arena, "// string hash: 0x%llx\n", node->string_hash));
}
//- rjf: location
if(flags & MD_GenerateFlag_Location)
{