Syntax coloring doesn't honor ~ line continuation
A Logo programming environment for Microsoft Windows
Brought to you by:
david_costanzo
FMSLogo supports a ~ character at the end of a physical line as a way to continue a logical line. However the syntax coloring does not support this. This gives a misleading indication of how FMSLogo will interpreate what is written.
Steps to Reproduce:
Open the editor and paste the following:
TO COLORTEST
; the ~ character continues the line
SHOW "darkred;green~
still-dark-red
; line continuation doesn't break a variable
SHOW :dark.blue;green~
still.dark.blue~
still.dark.blue
END
Note that you can run COLORTEST to see how FMSLogo interprets the tokens. It'll give an error that dark.bluestill.dark.bluestill.dark.blue has no value, which proves that the variable named continued across the line continuation.
What happens:
still-dark-red is black.
still.dark.blue is black.
Expected result:
All tokens are showed in the self-described color (green is green, dark-blue is dark blue, dark-red is dark red.
I have committed fixes for four separate syntax coloring bugs, including the two mentioned above: [r5719], [r5720], [r5721], and [r5722]. These will be available in FMSLogo 8.1.0.
Related
Commit: [r5719]
Commit: [r5720]
Commit: [r5721]
Commit: [r5722]