mirror of https://github.com/helix-editor/helix
761 B
761 B
Previously, if you had a file like this:
<p>Some text 1234</p>
<script type="text/javascript">
// More text 1234
foo();
</script>
Pressing Space + c
(toggle comment) on the JavaScript comment would've used the HTML comment token:
<p>Some text 1234</p>
<script type="text/javascript">
<!-- // More text 1234 -->
foo();
</script>
This PR fixes that. Now, the comment token is properly recognized:
<p>
Some text 1234
</p>
<script type="text/javascript">
More text 1234
foo();
</script>
It works in all languages that properly inject comment tokens. For instance, JSX, Svelte, and others.
Closes https://github.com/helix-editor/helix/issues/7364 Closes https://github.com/helix-editor/helix/issues/11647