You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A S-expression following #; is not colored as a comment, but is recognized as comment by the LSP. It does not matter if the #; is on the same line or the following.
Example:
#;
(define test 5)
(test)
yields the LSP error: ... test: unbound identifier in: testRacket, so the define of test is comment out.
Btw. entering a #; in the last line of a file results in an unrecoverable error, the extension/window has to be restarted.
I don't know if this is a problem of the LSP or the extension.
Thanks for the report! Indeed, #; highlighting is not currently handled. This one is a bit trickier to handle than other comment styles, so I'll have to think about this one for a bit.
As for the part related to entering #; at the end of a file causing an error that needs a reload to recover, that's a langserver issue, so it would be great if you could report that portion over in that repo.
Activity
jryans commentedon Apr 3, 2023
Thanks for the report! Indeed,
#;highlighting is not currently handled. This one is a bit trickier to handle than other comment styles, so I'll have to think about this one for a bit.As for the part related to entering
#;at the end of a file causing an error that needs a reload to recover, that's alangserverissue, so it would be great if you could report that portion over in that repo.Release-Candidate commentedon Apr 3, 2023
Thank you. Yes, I can imagine that isn't the easiest comment to handle.
And done.