From 35448b24bf768292128905e39e3efe3daebc5eaa Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 9 Mar 2025 13:12:03 -0400 Subject: listbas: -D, stop putting a space in int vars like A#. --- listamsb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'listamsb.c') 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; -- cgit v1.2.3