From 56276edbe7381d19319f7390719298f7f93471e1 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 14 Jul 2024 03:15:01 -0400 Subject: bas.c: warn about _ in variable names, but allow. --- bas.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3