diff options
author | B. Watson <urchlay@slackware.uk> | 2024-07-14 03:15:01 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2024-07-14 03:15:01 -0400 |
commit | 56276edbe7381d19319f7390719298f7f93471e1 (patch) | |
tree | ac117731ae3e4964fb8655570ebfd4e56cc1d5d8 | |
parent | 7d62e61608a8c54edc46eb5702287af84b045c69 (diff) | |
download | bw-atari8-tools-56276edbe7381d19319f7390719298f7f93471e1.tar.gz |
bas.c: warn about _ in variable names, but allow.
-rw-r--r-- | bas.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |