~This PR is branched off of #164 and will look like a mess until rebased.~ rebased
The function pygn-mode-backward-exit-variations-and-comments is ported to tree-sitter, with reduced code and increased clarity. As a comment notes, the code could be improved by using the functions in #162 , which can be done later after merging and rebasing.
We also remove some pesky TODO comments as some subtle bugs in the previous implementation are resolved.
~This PR is branched off of #164 and will look like a mess until rebased.~ rebased
The function
pygn-mode-backward-exit-variations-and-comments
is ported to tree-sitter, with reduced code and increased clarity. As a comment notes, the code could be improved by using the functions in #162 , which can be done later after merging and rebasing.We also remove some pesky TODO comments as some subtle bugs in the previous implementation are resolved.