racket / gui

Other
64 stars 77 forks source link

Code parsing bug in the DrRacket editor #278

Open artfri13 opened 2 years ago

artfri13 commented 2 years ago

What version of Racket are you using? 8.5

What program did you run? I was using the DrRacket editor with DrRacket set to the Simply Scheme language.

What should have happened? Less text should have been highlighted by the code highlighting feature. In the three screenshots, I was moving the text insertion mark from the very right of the third line towards the left. Also, pointing to an error in the editor's parser, the Reindent All command did not indent the last line correctly. The interpreter ran the code without errors. As you can see, too much text was being highlighted in each screenshot:

incorrect_code_highlighting_1 incorrect_code_highlighting_2 incorrect_code_highlighting_3

The only problem is that I haven't yet found out how to reproduce the bug. I hope to see the bug again, and I will add it to this issue when I do.

Please include any other relevant details DrRacket for Apple chips, macOS 12.4, Mac Studio M1 Max

rfindler commented 2 years ago

Thank you for submitting this issue. It turns out that the code that does the highlighting is in the racket/gui repo, so I will transfer this issue there.