more convergence / fixes relating to searching/queries/filters

This commit is contained in:
Ryan Fleury
2025-02-21 16:33:57 -08:00
parent 9b636568fd
commit 1b4a5e529f
5 changed files with 141 additions and 102 deletions
+12 -4
View File
@@ -819,12 +819,20 @@ e_append_strings_from_expr(Arena *arena, E_Expr *expr, String8List *out)
op_info->sep,
op_info->post,
};
U64 idx = 0;
for(E_Expr *child = expr->first;; child = child->next, idx += 1)
U64 sep_idx = 0;
for(E_Expr *child = expr->first;; child = child->next)
{
if(seps[idx].size != 0)
if(seps[sep_idx].size != 0)
{
str8_list_push(arena, out, seps[idx]);
if(sep_idx == 1 && child == &e_expr_nil)
{
sep_idx += 1;
}
str8_list_push(arena, out, seps[sep_idx]);
if(sep_idx == 0)
{
sep_idx += 1;
}
}
if(child == &e_expr_nil)
{