-
-
Notifications
You must be signed in to change notification settings - Fork 84
Surrounding pair problem in error python code #712
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
Isn't that invalid Python? |
Yes, but the idea behind surrounding pairs is that they should work no matter what |
The problem here is that tree-sitter is seeing this We do avoid doing this if the The example described in this issue is obviously fairly odd-ball code, but @AndreasArvidsson maybe it would make sense to just take a swing at implementing #673 using a new experimental modifier type. Then it's well-contained and feature flagged, so you can see if you can get something robust working. I do think you'll need to think about the less-than case, but who knows, maybe there's a stack of heuristics that will end up being more predictable than what we have today. As long as it's in its own modifier stage and protected by a feature flag, I'm happy for you to go wild. One of the benefits of the new, more modular approach You might want to wait for the newer scope type setup, though, so you don't have to worry about ranges. I'm hoping we can get that working in #629 |
…is detected. (#1558) Fixes #712 ## Checklist - [x] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet
def funk(words:list<str>):
take pair
in<str>
doesn't workThe text was updated successfully, but these errors were encountered: