Skip to content
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

Surrounding pair doesn't work with invalid empty lambda #2291

Open
pokey opened this issue Apr 8, 2024 · 0 comments
Open

Surrounding pair doesn't work with invalid empty lambda #2291

pokey opened this issue Apr 8, 2024 · 0 comments
Labels
bug Something isn't working lang-typescript TypeScript/JavaScript grammar support

Comments

@pokey
Copy link
Member

pokey commented Apr 8, 2024

In the following Typescript code:

(() => ())

Saying "take pair" from the => should select the whole line, but just gives an error. I don't believe this is valid Typescript (something needs to be between second pair of inner parens for it to be a valid lambda), but it should still be handled correctly by our code that is supposed to fall back to textual when in an error node

@pokey pokey added bug Something isn't working lang-typescript TypeScript/JavaScript grammar support labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lang-typescript TypeScript/JavaScript grammar support
Projects
None yet
Development

No branches or pull requests

1 participant