aboutsummaryrefslogtreecommitdiff
path: root/listbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-16 05:11:36 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-16 05:11:36 -0400
commitd0095f039081102ede7c8802565b43fd1caabc77 (patch)
tree6f1a0a3f7219ef68af901cd160df8506a4c8ed7a /listbas.c
parent56e65923ce6dd9167fbf49d41559d558c278f78d (diff)
downloadbw-atari8-tools-d0095f039081102ede7c8802565b43fd1caabc77.tar.gz
listbas: properly colorize BXE functions with ( as part of the name.
Diffstat (limited to 'listbas.c')
-rw-r--r--listbas.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/listbas.c b/listbas.c
index 5972aa8..bcdb052 100644
--- a/listbas.c
+++ b/listbas.c
@@ -64,18 +64,18 @@
const char *cmd_tokens[256];
const char *op_tokens[256];
-int dump_tables = 0;
-
-int bas_type = B_ATARI;
+int bas_type = B_ATARI; /* -b */
int output_mode = M_UTF8;
-int bold = 0; /* 1 with -b */
+int bold = 0; /* 1 with -B */
int color = 1; /* 0 with -n */
int immediate = 0; /* 1 with -i */
int underline = 0; /* 1 with -u */
int skip_lineno = 0; /* 1 with -l */
+int dump_tables = 0; /* 1 with -D */
+/* change these with -c */
int color_cmd = C_YELLOW;
int color_op = C_GREEN;
int color_func = C_PURPLE;
@@ -414,6 +414,7 @@ void print_mixed_case(const char *name) {
while(( c = *name++)) {
if(c >= 'A' && c <= 'Z')
c |= 0x20;
+ if(color && c == '(') color_on(color_op);
outchr(c);
}
}