aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--listamsb.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/listamsb.c b/listamsb.c
index 6092dfa..77d9a88 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -23,6 +23,9 @@
#define TOK_SQUOTE 0x9a
#define TOK_BANG 0x9b
+/* AMSB's token for ELSE */
+#define TOK_ELSE 0x9c
+
/* good old Atari EOL character */
#define EOL 0x9b
@@ -339,8 +342,10 @@ int next_line(void) {
continue;
}
- if(was_colon && byte != TOK_SQUOTE && byte != TOK_BANG) {
- if(printing) putc(':', outfile);
+ if(was_colon) {
+ if(byte != TOK_SQUOTE && byte != TOK_BANG && byte != TOK_ELSE) {
+ if(printing) putc(':', outfile);
+ }
was_colon = 0;
}