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

Make keyword completions context sensitive #82

Open ojwb opened 2 years ago

ojwb commented 2 years ago

Split out of #34 where @mattgodbolt proposed:

Moving forward suggesting PRINT halfway through a line should be avoided too. I think we get some clues for those in the "flags" of the tokenisation table (which we parse but don't use yet). e.g. http://www.benryves.com/bin/bbcbasic/manual/Appendix_Tokeniser.htm stuff in there we aren't yet using.