Skyler Hawthorne
Skyler Hawthorne
Yep this is just an issue with how the grammar parses incomplete nodes
I mean... this is a general problem with tree-sitter. It can't make a sensible tree to navigate when the syntax isn't valid. It can't guess what you're going to write...
That said, it may be sensible to make a separate command that moves the cursor to the end of the surrounding pair. This would not depend upon tree-sitter grammars, but...
Also for what it's worth, in my opinion, for this case hitting `()` on the keyboard is always gonna be faster than `(`.
I'm going to close this, as it's not really actionable. As far as what smart tab is supposed to do, which is jump to the end of the parent node,...
I'd like to remind the maintainers that this bug completely and utterly breaks salt on many systems, especially because this "fix" has been backported to Python 3.12. I understand that...