ethan-leba / tree-edit

🌲 Structural editing in Emacs for any™ language!
GNU General Public License v3.0
390 stars 16 forks source link

Support non-contiguous edits (for deletions) #25

Open ethan-leba opened 2 years ago

ethan-leba commented 2 years ago

Currently the tree-edit syntax generation and rendering relies on the assumption that all modifications of the syntax tree would operate on a contiguous region (adjacent siblings).

For example, if we have ("(" identifier "," comment [identifier]) and perform a deletion, we'd like the result to be ("(" identifier comment), and the comment should be left unmodified.

Related to #18