-
Notifications
You must be signed in to change notification settings - Fork 352
Incorrect highlighting when defining a computed method #425
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
I believe this is some form of ES7 level functionality? I will look into it as I look to add ES7 support. Thanks for posting the issue! |
Computed method names (computed properties) is an ES6 feature: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Method_definitions |
In objects yes, I believe you are correct. Curly brackets in class definitions have a different set of rules that are being expanded upon in ES7 |
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 in |
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...
The current highlighter thinks the method body is jsClassBlock so its entire highlighting is thrown off.
The text was updated successfully, but these errors were encountered: