~This is branched off of #154, and will look like a mess until rebased.~ rebased
Use the tree-sitter concrete syntax tree to answer the question of whether a position is inside a comment.
Recast pygn-mode-inside-comment-p as pygn-mode-inside-movetext-comment-p: the tree-sitter grammar permits comments outside of movetext, and we should distinguish the two cases. (The change in interface is regrettable however.)
~This is branched off of #154, and will look like a mess until rebased.~ rebased
Use the tree-sitter concrete syntax tree to answer the question of whether a position is inside a comment.
Recast
pygn-mode-inside-comment-p
aspygn-mode-inside-movetext-comment-p
: the tree-sitter grammar permits comments outside of movetext, and we should distinguish the two cases. (The change in interface is regrettable however.)