tree-sitter-diff icon indicating copy to clipboard operation
tree-sitter-diff copied to clipboard

A tree-sitter grammar for `diff` output

Results 5 tree-sitter-diff issues
Sort by recently updated
recently updated
newest added

It would be nice to see support for diff3 and zdiff3 merge conflicts within tree-sitter-diff, as it roughly falls under the category of "diff". [Here is a rundown of diff3...

I was puzzled why the bit after a comment in a Lua file was not getting highlighted in red, turns out it is a parse `ERROR` according to `:InspectTree`: Reproducer...

bug

When you manually edit a hunk with `git add --patch file`, git creates sort of a 'diff' file with comments (lines starting with `#` similar to `git commit -e`) that...

enhancement

This PR is mostly motivated by the following problem: 1. The diff command has two filenames, but the parser is currently parsing everything **after** `diff --git` as a single filename...

It seems only one of the `diff` tool output styles is supported at the moment (`diff -u`), others are highlighted partially or not at all. I would like for the...