Skip to content

fix: remove html highlighting from markdown grammar#770

Open
mhuisi wants to merge 1 commit intoleanprover:masterfrom
mhuisi:push-wxlpxuvwwnty
Open

fix: remove html highlighting from markdown grammar#770
mhuisi wants to merge 1 commit intoleanprover:masterfrom
mhuisi:push-wxlpxuvwwnty

Conversation

@mhuisi
Copy link
Copy Markdown
Collaborator

@mhuisi mhuisi commented Apr 20, 2026

This PR removes the highlighting for HTML tags in the TextMate grammar for Lean comments.

The Lean TextMate grammar uses a patched version of the official Markdown TextMate grammar, which includes highlighting for HTML (by deferring to VS Code's own HTML highlighting).

In most TextMate rules of the patched Markdown grammar, we explicitly account for the closing token -/ to terminate whatever rule the Markdown grammar was currently parsing, but this is not possible in the HTML grammar, since it is handled by VS Code.

HTML tag highlighting in the Markdown of Lean comments isn't very useful but has caused plenty of highlighting problems in the past, so this PR removes it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@mhuisi mhuisi force-pushed the push-wxlpxuvwwnty branch from 060e3e0 to 328c981 Compare April 20, 2026 07:53
@mhuisi mhuisi changed the title fix: markdown grammar highlighting bug fix: remove html highlighting from markdown grammar Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant