diff options
-rw-r--r-- | whichbas.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -290,9 +290,10 @@ CALLBACK(handle_op) { /* partial: if the last token was a command, this *can't* be EXOR (it's infix). */ remove_type(BT_TURBO); - /* this won't quite work: */ - /* } else if(program[pos - 1] == OP_NUM_ASSIGN) { - remove_type(BT_TURBO); */ + } else if(last_cmd_pos == (pos - 2) && program[pos - 1] == OP_NUM_ASSIGN) + /* partial: if the last-but-one token was a command and the + last one was an assignment equals sign, this can't be infix. */ + remove_type(BT_TURBO); } else if(program[pos - 1] >= 0x80) { /* partial: if the last token was a variable, this can't be BUMP (it's a function, last token has to be a command |