Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment end confusion inside inline Javascript intellisense #151

Open
yoonbuck opened this issue Feb 9, 2023 · 0 comments
Open

Comment end confusion inside inline Javascript intellisense #151

yoonbuck opened this issue Feb 9, 2023 · 0 comments

Comments

@yoonbuck
Copy link
Member

yoonbuck commented Feb 9, 2023

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>

image

And various other consequences of interpreting comments as code (setting types, entering blocks, etc.)

image

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant