Improved Lambda Argument Handling #388
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a first pass at adding back in the
jsArrowFuncArgs
matching when using parenthesis.It should mostly fix issues specified at #378 and #364.
I have been using the following test file to ensure syntax highlighting seems to work, I would be open to more test cases to add to this to ensure things are working.
We don't handle this file perfectly, but we do breakdown 'gracefully' (meaning we do not show error parenthesis groups).
Current issues I haven't been able to figure out:
jsArrowFuncArgs
matchjsArrowFuncArgs
I have done a bit of research into other editors like Sublime and Atom, and none can even handle this file completely correctly, and they ALL break with the 2 issues I mentioned above (at least their default syntax highlighting, I never explored plugins that may do things better).