-
Notifications
You must be signed in to change notification settings - Fork 352
Arrow function problems in classes #365
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 saw vim-plug supports specifying commits and I just went back in time and the issue persists. So it wasnt an update. I don't get it though because I've been working on this project for a while and today is the first time the highlighting broke. |
@Kareeeeem I think the reason I missed this, is because technically this feature is something from ES7, not ES6. I have a fix ready for this, although it does make me wonder what other ES7 things should be supported that might not be currently? |
I have created a fix for this in #366 |
Wow that was quick. And i just installed it to check and it works. However though as I mentioned above. I have been working on this project for a while and the highlighting broke today. I'm stumped. Anyways I'll keep your fork installed until it's merged. Thanks! |
@Kareeeeem the reason it appeared broken recently, is we just recently merged a bunch of stuff into the |
This issue should now be fixed in |
Hi, I updated my plugins today and I encountered an error.
When putting arrow functions inside (react) classes it breaks highlighting and also matchfinding of braces.
This is what was working fine before. Notice the messed up highlighting and the last brace of the class that is mistakenly highlighted as an error.

To fix it I have to write normal functions like so.

for completeness here is the code and the minimal vimrc (I elimited the jsx highlighter as the culprit.)
The text was updated successfully, but these errors were encountered: