dykstrom / basic-mode

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

Renumber sometimes scrambles code #27

Closed dykstrom closed 1 year ago

dykstrom commented 1 year ago

Try renumbering the following code with basic-syntax-highlighting-require-separator set to t.

   10 if a > 0 then10else40
   20 if a > 0 then 10 else 40
   30 if a > 0 then goto10 else gosub40
   40 goto10 : goto 10 : go to10 : go to 10
   50 gosub40 : gosub 40 : go sub40 : go sub 40
   60 on a goto10,20,40

With the flag set to t it should not even touch code like goto10, but instead it scrambles it. With the flag set to nil it works as intended.