aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--whichbas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/whichbas.c b/whichbas.c
index fcd4b70..ca4d6b4 100644
--- a/whichbas.c
+++ b/whichbas.c
@@ -292,6 +292,9 @@ CALLBACK(handle_op) {
}
break;
case 0x59: /* INKEY$ (0 arg pseudo-func) in TB, string array separator semicolon in BXL/BXE */
+ /* TODO: it might be better to detect INKEY$ by looking for end of line
+ or statement, or OP_ARR_COMMA. INKEY$ can't be followed by anything else,
+ AFAICT, but I'm not *that* certain yet... */
if(nexttok == OP_NUMCONST || nexttok == OP_HEXCONST || nexttok >= 0x80) {
/* INKEY$ may not be followed by a numeric constant or a variable of any kind */
remove_type(BT_TURBO);