When opening a Racket file that contains block comments, the syntax highlighting and formatting in VS Code breaks for the entire file. This is particularly noticeable when opening files that were previously edited in DrRacket.
Steps to Reproduce
- Open a
.rkt file in DrRacket
- Add a block comment anywhere in the file and save the file.
- Reopen the file in VS Code
Expected Behavior
The extension should recognize block comments. Text inside should be styled as a comment, and highlighting should resume normally immediately after the closing delimiter.
Actual Behavior
The block comment appears to break the parser. All code loses its formatting, and the file is not editable anymore.
Screenshots
Without block comments (Correct):

With block comments (Broken):

Environment
- Racket version: 9.0
- Editor: VS Code
- OS: macOS Tahoe 26.3
When opening a Racket file that contains block comments, the syntax highlighting and formatting in VS Code breaks for the entire file. This is particularly noticeable when opening files that were previously edited in DrRacket.
Steps to Reproduce
.rktfile in DrRacketExpected Behavior
The extension should recognize block comments. Text inside should be styled as a comment, and highlighting should resume normally immediately after the closing delimiter.
Actual Behavior
The block comment appears to break the parser. All code loses its formatting, and the file is not editable anymore.
Screenshots
Without block comments (Correct):

With block comments (Broken):

Environment