From 304eb80e0defead0d95fc52b1f2f7d534d582921 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 10 May 2026 19:15:41 +0100 Subject: [PATCH] bshell: add debug output support for operator tokens --- bshell/debug.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bshell/debug.c b/bshell/debug.c index 9927475..fa83626 100644 --- a/bshell/debug.c +++ b/bshell/debug.c @@ -26,10 +26,12 @@ extern void print_lex_token(struct lex_token *tok) case TOK_DOUBLE: fx_puts("[yellow]"); break; - case TOK_FLAG: + case TOK_OPERATOR: fx_puts("[red]"); break; case TOK_WORD: + case TOK_WORD_START: + case TOK_WORD_END: case TOK_VAR: case TOK_VAR_SPLAT: fx_puts("[cyan]"); @@ -60,6 +62,9 @@ extern void print_lex_token(struct lex_token *tok) case TOK_VAR_SPLAT: printf("(%s)", tok->tok_str); break; + case TOK_OPERATOR: + printf("(%s)", token_operator_to_string(tok->tok_operator)); + break; case TOK_SYMBOL: printf("(%s)", token_symbol_to_string(tok->tok_symbol)); break;