aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-07-14 03:15:01 -0400
committerB. Watson <urchlay@slackware.uk>2024-07-14 03:15:01 -0400
commit56276edbe7381d19319f7390719298f7f93471e1 (patch)
treeac117731ae3e4964fb8655570ebfd4e56cc1d5d8
parent7d62e61608a8c54edc46eb5702287af84b045c69 (diff)
downloadbw-atari8-tools-56276edbe7381d19319f7390719298f7f93471e1.tar.gz
bas.c: warn about _ in variable names, but allow.
-rw-r--r--bas.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bas.c b/bas.c
index 24508e4..ab02b28 100644
--- a/bas.c
+++ b/bas.c
@@ -217,6 +217,10 @@ int vntable_ok(void) {
/* numbers and letters are allowed, inverse or normal. */
c &= 0x7f;
+ if(c == '_') {
+ fprintf(stderr, "%s: Underscore in variable name; Turbo or BASIC XE?\n", self);
+ continue;
+ }
if(c >= 0x30 && c <= 0x39) continue;
if(c >= 0x41 && c <= 0x5a) continue;