shikijs/shiki

Astro syntax highlighting issue with curly braces

Opened this issue · 0 comments

Validations

Describe the bug

When I use curly braces to interpolate a value in an Astro template, the following closing HTML element doesn't seem to be highlighted properly.
Screenshot 2024-11-07 at 8 02 05 PM

This doesn't seem to happen when I try the same thing on https://textmate-grammars-themes.netlify.app/

Reproduction

https://shiki.style/

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests