A little more progress on my syntactic differ: now it only shows lines of things that have changed!
Here's a Scheme example. Note that line 16 on the right has moved, but it's actually unchanged. Difftastic understands this :)
It's amazingly awkward to print a syntactic diff correctly. Even the lines before and after the changes may not line up, if whitespace has changed!
Difftastic now inserts blank lines to help things line up. I'm reasonably happy with the result here.
Here's another fun example where syntactic diffing really helps.
Even though the syntax has changed (`attr` was a named argument, now it's a record), the nesting has changed, and the line has changed, difftastic has successfully matched the `attr` in the code afterwards!
Wilfred Hughes
Shared words: Difftastic, syntactic, lines, changed, example
Score: 204.9
I'm prototyping HTML output from difftastic, and I'm really excited about the initial results.
I can provide full syntax highlighting with HTML (in both changed and unchanged regions), and I can have multiple levels of transparency to highlight the changed syntactic elements!