dwcoates / pygn-mode

An Emacs major-mode for chess PGN files, powered by Python
BSD 2-Clause "Simplified" License
10 stars 3 forks source link

Port pygn-mode-backward-exit-variations-and-comments to tree-sitter #165

Closed rolandwalker closed 3 years ago

rolandwalker commented 3 years ago

~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.