Skip to content

javascript.lang: Fix script not ending when inside template literal

Previously, if an HTML file had code like:

<script>var a = `</script>

then the JavaScript highlighting would continue beyond the closing tag.

This fixes the template literal context so that highlighting correctly ends in this case.

Merge request reports