Nice to have
In particular, the following content is not legal:
<script> const example = 'Consider this string: <!-- <script>'; console.log(example); </script>.
However, such a constellation can occur if the code editor content is written as a script, because when writing string literals, the >` character is already quotet, but not the `< character. If a code editor contains an XML comment followed by a script tag, then exactly the above sequence occurs because the corresponding closing tags are quotet.