richardjdare / bb2-mode

Emacs major mode for Blitz Basic 2 (a basic compiler for the Amiga)
GNU General Public License v3.0
6 stars 0 forks source link

Fix issues with data$ #1

Closed richardjdare closed 3 years ago

richardjdare commented 7 years ago

$ doesn't work nicely when its used as part of a data statement ie:

Data.b 1,2,3 Data$ "a string"

Because $ is of syntax class "w" it is considered part of the preceding Data statement, which then fails to trigger the keyword highlighting. If I change the syntax class to "'" it works but then breaks keywords with $ in such as Inkey$, because Emacs no longer considers $ to be part of a word.

For now, I have added a keyword "Data$" which is better than nothing, but really the $ in Data$ should be a type.