tree-edit icon indicating copy to clipboard operation
tree-edit copied to clipboard

Support non-contiguous edits (for deletions)

Open ethan-leba opened this issue 4 years ago • 0 comments
trafficstars

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

ethan-leba avatar Nov 09 '21 00:11 ethan-leba