When commenting out a tag in HTML, CodeMirror wraps it in /* and */ instead of HTML Comments <!-- and -->. I assume the language detection is trying to comment within the script, but doesn’t take into account the cursor/highlighting position that’s still in the HTML context.
That was a recent regression in @lezer/common. This patch should fix it.
1 Like
Thanks, @marijn! We’ll give that a try.
Works like a charm. Thanks for the patch!