1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 11:04:00 +03:00

Recur through replacements.

This commit is contained in:
Rob Rix 2015-10-21 14:08:43 -04:00
parent 6c1b0c0fa6
commit 90ae03f234

View File

@ -64,7 +64,10 @@
// fixme: handle annotated terms
if (patch.delete != null) { return term(patch.delete, before); }
if (patch.insert != null) { return term(patch.insert, after); }
if (patch.replace != null) {}
if (patch.replace != null) {
if (term.patch.before != null) { term(patch.replace.before); }
if (term.patch.after != null) { term(patch.replace.after); }
}
}
function indexed(array, continuation) {