-
Notifications
You must be signed in to change notification settings - Fork 586
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
[Javascript] Arrow function arguments split across lines get wrong scope #2724
Comments
Also I found this similar issue in a different repo. I guess it's the same underlying problem (regex engine)? babel/babel-sublime#340 |
Yep, the current version of the JavaScript syntax fixes multiline arrow function. It relies on a new feature from ST4, so the fix cannot be backported to ST3. The syntax still uses regexp lookaheads to scope function names in e.g. |
Fantastic—I will give ST4 a go. Many thanks. |
Scope Hunter reports the function
multiLine
assource.js meta.binding.name.js variable.other.readwrite.js
whereasoneLine
is (correctly)source.js meta.function.declaration.js entity.name.function.js variable.other.readwrite.js
. There are similar differences for all the other incorrectly highlighted elements. Let me know if it's useful to list them all.The text was updated successfully, but these errors were encountered: