You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the function arguments destructured into multiple lines, successive texts are incorrectly coloured, such as strings and code following an instance of /* within a string:
With the line of the string containing /* commented out, other strings are still incorrectly coloured:
Converting the arguments destructuring to a single line prevents the issues:
The problem seems to start at the =>. In the third example you give, it is colored yellow, but in the first two it is left white. This should not happen, and it is surely the cause of the subsequent problems.
It is known that Sublime cannot reliably determine whether ( begins a parenthesized expression or an arrow function argument list. (This is a fundamental engine limitation, not a fixable bug in the syntax definition. See #2241 for more information.) Given this limitation, the syntax tries to guess which it is, assuming a parenthesized expression if it can't tell for sure. If it guesses wrong, the argument list may be highlighted incorrectly, but the syntax should recover if it sees => after the closing paren. For some reason, this is not happening in your example.
I could not reproduce the issue with the latest master branch, but master is ahead of the current dev build. It would help if you could post a self-contained example in text form.
The bug is that the => fallback isn't working as expected. That should go to the packages repo.
FYI, I've verified the bug in 3173 (3180 uses the same packages), and I can confirm that it's fixed in master. I could not immediately tell which PR fixed it.
With the function arguments destructured into multiple lines, successive texts are incorrectly coloured, such as strings and code following an instance of
![issue1](https://user-images.githubusercontent.com/170197/47800185-2aa61280-dd02-11e8-8e0a-cf359510bfb9.png)
/*
within a string:With the line of the string containing
![issue2](https://user-images.githubusercontent.com/170197/47800186-2aa61280-dd02-11e8-9099-16d8488afeac.png)
/*
commented out, other strings are still incorrectly coloured:Converting the arguments destructuring to a single line prevents the issues:
![issue3](https://user-images.githubusercontent.com/170197/47800187-2aa61280-dd02-11e8-9989-c65c85b96761.png)
Example text:
The text was updated successfully, but these errors were encountered: