mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-13 07:52:22 -07:00
set implicitly-delimited separator set node flags correctly
This commit is contained in:
+2
-10
@@ -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)
|
||||
{
|
||||
|
||||
+1
-4
@@ -606,7 +606,6 @@ struct MD_Node
|
||||
MD_NodeFlags flags;
|
||||
MD_String8 string;
|
||||
MD_String8 raw_string;
|
||||
MD_u64 string_hash;
|
||||
|
||||
// Source code location information.
|
||||
MD_u64 offset;
|
||||
@@ -614,7 +613,6 @@ struct MD_Node
|
||||
// Reference.
|
||||
MD_Node *ref_target;
|
||||
|
||||
|
||||
// Comments.
|
||||
// @usage prev_comment/next_comment should be considered "hidden". Rely on
|
||||
// the functions MD_PrevCommentFromNode/MD_NextCommentFromNode to access
|
||||
@@ -830,8 +828,7 @@ enum
|
||||
MD_GenerateFlag_Comments = (1<<3),
|
||||
MD_GenerateFlag_NodeKind = (1<<4),
|
||||
MD_GenerateFlag_NodeFlags = (1<<5),
|
||||
MD_GenerateFlag_StringHash = (1<<6),
|
||||
MD_GenerateFlag_Location = (1<<7),
|
||||
MD_GenerateFlag_Location = (1<<6),
|
||||
|
||||
MD_GenerateFlags_Tree = (MD_GenerateFlag_Tags |
|
||||
MD_GenerateFlag_TagArguments |
|
||||
|
||||
Reference in New Issue
Block a user