From 364d313c221aa857e8727b568fabafb4b2421f58 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Mon, 8 Sep 2025 16:27:21 +0100 Subject: [PATCH] frontend: debug: add colours for new token and node types --- frontend/debug.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/debug.c b/frontend/debug.c index 01e0eee..c37d87e 100644 --- a/frontend/debug.c +++ b/frontend/debug.c @@ -167,9 +167,11 @@ extern enum ivy_status print_ast_node( case IVY_AST_COND_GROUP: case IVY_AST_WHILE_LOOP: case IVY_AST_FOR_LOOP: + case IVY_AST_LOOP_BREAK: + case IVY_AST_LOOP_REPEAT: case IVY_AST_TRY: case IVY_AST_RETURN: - case IVY_AST_VAR: + case IVY_AST_GLOBAL: b_puts("[magenta]"); break; case IVY_AST_OP: @@ -182,6 +184,9 @@ extern enum ivy_status print_ast_node( case IVY_AST_DOUBLE: case IVY_AST_ATOM: case IVY_AST_TUPLE: + case IVY_AST_C_TRUE: + case IVY_AST_C_FALSE: + case IVY_AST_C_NULL: b_puts("[yellow]"); break; case IVY_AST_COND: