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

Variables that contains a function has a wrong color #281

Closed
lgraziani2712 opened this issue Nov 3, 2016 · 1 comment
Closed

Variables that contains a function has a wrong color #281

lgraziani2712 opened this issue Nov 3, 2016 · 1 comment

Comments

@lgraziani2712
Copy link

When you create a function like this:

const helloWorld = () => 'hello world';

It paints helloWorld variable with blue. That's ok. But if you sets a return type, like this:

const helloWorld = (): string => 'hello world';

It paints helloWorld variable with the scarlet red for variables that aren't functions.

image

Information

  • Atom: v1.11.2.
  • language-babel: v2.46.0.
@gandm
Copy link
Owner

gandm commented Nov 3, 2016

Thanks for the report. I think I made a change to support the new Flow %checks predicate quite a while ago but it looks like it's screwed things. I'll look at fixing.

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

2 participants