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

Static properties combining ::, =>, and number literals break syntax highlighting #270

Closed
appsforartists opened this issue Jul 19, 2016 · 1 comment

Comments

@appsforartists
Copy link

Using transform-function-bind and transform-class-properties together makes syntax highlighting very fragile. For instance, this won't highlight:

export class Example {
  _someStream = someOtherStream::map(
    thing => 1
  );

  constructor() {
    console.log('this should be highlighted');
  }
}

but replacing the 1 with an identifier will highlight correctly.

zertosh added a commit that referenced this issue Nov 28, 2016
@zertosh
Copy link
Member

zertosh commented Nov 28, 2016

Just added a test to catch this in the rewrite. See "re-rewrite babel-sublime" #293.

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