Closed shaunlebron closed 6 years ago
I forgot that multiple changes are already supported. For example:
(foo
++
bar)
++
For the sake of naive diff parsing, I suppose I only allowed a single contiguous diff per line. So we still need support for overlapping changes.
I updated the documentation and allowed multiple in
blocks for this purpose: https://github.com/shaunlebron/parinfer/commit/d4195d8f26b6c92d65bff2af5b9d391001c251fd
fixed by #181
Problems:
To allow both multiple and overlapping changes, I will support multiple
in
blocks.This parses to the following data:
Some details:
in
block must match the "before" state of the nextin
blockin
block maps directly to achange
object