aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-03-09 13:12:03 -0400
committerB. Watson <urchlay@slackware.uk>2025-03-09 13:12:09 -0400
commit35448b24bf768292128905e39e3efe3daebc5eaa (patch)
tree136be334d539d458e30790f6359dddbb7a180b26
parentaacec9f96fabac88b4b88d0d25bbd93620e7cbfe (diff)
downloadbw-atari8-tools-35448b24bf768292128905e39e3efe3daebc5eaa.tar.gz
listbas: -D, stop putting a space in int vars like A#.
-rw-r--r--listamsb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/listamsb.c b/listamsb.c
index b0ce957..6e06818 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -614,6 +614,7 @@ int need_space_between(int ext1, int ext2, unsigned char t1, unsigned char t2) {
}
if(!ext2) {
+ /* these always get a space before them, for readability. */
if(t2 == TOK_THEN) return 1;
if(t2 == TOK_AND) return 1;
if(t2 == TOK_OR) return 1;
@@ -630,7 +631,7 @@ int need_space_between(int ext1, int ext2, unsigned char t1, unsigned char t2) {
if(t2 == TOK_ELSE) return 1;
}
- if(isalnum(t1last)) {
+ if(t1 >= 0x80) {
/* space not really required between OPEN/PRINT/CLOSE and #,
but put one there for neatness. */
if(t2first == '#') return 1;