This is a library that uses `tree-sitter` internally to parse syntax and provide an intelligent diff: https://difftastic.wilfred.me.uk/