mattgodbolt / owlet-editor

A modern BBC BASIC editor inspired by the BBC Micro Bot (https://bbcmicrobot.com)
https://bbcmic.ro
54 stars 4 forks source link

Erroneous ~ not highlighted #46

Open ojwb opened 3 years ago

ojwb commented 3 years ago

Following on from #20...

The current state is better than before the fix for #20, but ~ now seems to be treated as an operator like +, etc but really it's more like ' as it can't be used in most expressions. I think it only works in PRINT and as the next token after STR$ (so A$=STR$~(12) and B$=STR$~12 work, but C$=STR$(~12) doesn't.)

Admittedly a minor issue, but ideally A=~B should show ~ in red.