From 5af47ce443f9449d041630068d55ae5038faab56 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Wed, 4 Dec 2024 16:35:41 +0000 Subject: [PATCH] frontend: add colours to conditional AST tree debug output --- frontend/debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/debug.c b/frontend/debug.c index 62cfabb..01e6a55 100644 --- a/frontend/debug.c +++ b/frontend/debug.c @@ -143,6 +143,7 @@ extern enum ivy_status print_ast_node( case IVY_AST_MSGH: case IVY_AST_UNIT_PACKAGE: case IVY_AST_UNIT_IMPORT: + case IVY_AST_COND_GROUP: b_puts("[magenta]"); break; case IVY_AST_OP: @@ -155,6 +156,7 @@ extern enum ivy_status print_ast_node( case IVY_AST_DOUBLE: b_puts("[yellow]"); break; + case IVY_AST_COND: case IVY_AST_BLOCK: b_puts("[red]"); break;