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

Labels are being incorrectly capitalized and highlighted when they are the same as command names #20

Closed richardjdare closed 3 years ago

richardjdare commented 3 years ago

.print is a valid label in blitz basic. it should not be capitalized or highlighted as a command name. look into somehow overriding the syntax table so '.' becomes a symbol constituent when it is at the start of a word at the beginning of a line, and is classed as punctuation at all other times.

richardjdare commented 3 years ago

fixed by using syntax-propertize-rules to override the syntax table when '.' is at the start of a word, at the beginning of a line.