Skip to content

Improve syntax highlighting and formatting in WXME files #160

Description

@emielvandeveire

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

  1. Open a .rkt file in DrRacket
  2. Add a block comment anywhere in the file and save the file.
  3. 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):
Correct Highlighting

With block comments (Broken):
Broken Highlighting

Environment

  • Racket version: 9.0
  • Editor: VS Code
  • OS: macOS Tahoe 26.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions