-
Notifications
You must be signed in to change notification settings - Fork 352
Object on ES7 Class Highlights Closing Bracket Red #393
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
Comments
Also reproducible on |
I believe this is actually ES7 functionality? Which we've slowly been adding, but we are a bit behind there. |
@xwendotnet think your issue is different and fixed on |
@xwendotnet yes, that is a different issue and what @eddiezane said, it should now be fixed! |
*in the 'develop' branch |
@amadeus thank you, I will checkout that branch |
From MDN: “JavaScript classes are introduced in ECMAScript 6“.
Thanks! |
@daGrevis I should have been more clear. We support ES6 classes. The syntax here is actually new stuff added into ES7. If you look through that entire article, you won't find any examples of ES6 Classes only support functions in the definition. |
Ah, I see. My bad. 😄 |
There is one caveat right now, to properly support it, we sort of require semicolons. Not sure if this is something people will be happy with or not...
Should be fixed on |
There is one caveat right now, to properly support it, we sort of require semicolons. Not sure if this is something people will be happy with or not...
When you define an object on ES6 class, closing bracket of that object will get highlighted in red. When you define a number, a string, an array or a lambda instead, everything works.
You can reproduce this on
master
branch.The text was updated successfully, but these errors were encountered: