It looks like inside a <script> block, the intellisense thinks --> can end a JavaScript block comment /* */ (although syntax highlighting does not.)
This means that errors/warnings can appear inside comments:
<script>
/* --> a b
*/
</script>
And various other consequences of interpreting comments as code (setting types, entering blocks, etc.)
Hope this is the right place for this issue - it doesn't happen in standalone JS files - but happy to report elsewhere if this issue actually belongs there :smile:
It looks like inside a
<script>
block, the intellisense thinks-->
can end a JavaScript block comment/* */
(although syntax highlighting does not.)This means that errors/warnings can appear inside comments:
And various other consequences of interpreting comments as code (setting types, entering blocks, etc.)
Hope this is the right place for this issue - it doesn't happen in standalone JS files - but happy to report elsewhere if this issue actually belongs there :smile: