dykstrom / basic-mode

Emacs major mode for editing BASIC code
GNU General Public License v3.0
7 stars 10 forks source link

Highlight references to line numbers using the line number color #26

Closed hackerb9 closed 1 year ago

hackerb9 commented 1 year ago

One feature Telnet23's highlighting has that basic-mode.el should steal acquire is highlighting line numbers when they are referenced by statements like GOTO 10 in the line number color.

Note that Telnet23's regexps only handle numbers directly after THEN, ELSE, GO\s*TO, and GOSUB. There are other ways that BASIC can refer to line numbers.

These should all have the numbers highlighted as line numbers:

Exceptions:

Originally posted by @hackerb9 in https://github.com/dykstrom/basic-mode/issues/21#issuecomment-1292386419