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 after switch statement not scoped #666

Closed
mjbvz opened this issue Sep 17, 2018 · 1 comment
Closed

Comment after switch statement not scoped #666

mjbvz opened this issue Sep 17, 2018 · 1 comment

Comments

@mjbvz
Copy link
Contributor

mjbvz commented Sep 17, 2018

From microsoft/vscode#58810

TS and JS Grammar Extension version: 0.0.45 / latest

Code

switch (0) // discard and renew state per mode
{
}

The comment is currently scoped as switch-statement.expr.tsx instead of as a comment

@frevds
Copy link

frevds commented Sep 17, 2018

This is probably related to this:

image

a comment following the last member in an object declaration with key=value abbreviation syntax lets the last member be unscoped.

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

2 participants