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

Leading semicolons in if-statements break highlighting #319

Closed
lourd opened this issue Apr 18, 2017 · 2 comments
Closed

Leading semicolons in if-statements break highlighting #319

lourd opened this issue Apr 18, 2017 · 2 comments

Comments

@lourd
Copy link

lourd commented Apr 18, 2017

Using v8.6.3, Sublime build 3126, OSX 10.12.3

I stumbled across this case of broken highlighting when adding Prettier to my project with semicolon-less style. When using do expressions within JSX, Prettier adds a leading semicolon to the source, i.e.

do {
  if (true) {
    ;<span>Foo</span>
  } else {
    ;<span>Bar</span>
  }
}

This causes the highlighting of all the code beyond the semicolon to be messed up.

@borela
Copy link

borela commented Jan 15, 2018

@Thom1729
Copy link
Contributor

This should be fixed in v10.0.0-beta.1. See #379 for more information on the new release. Please report any problems with v10 in a new issue.

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

No branches or pull requests

3 participants