the-mikedavis / tree-sitter-diff

A tree-sitter grammar for `diff` output
https://the-mikedavis.github.io/tree-sitter-diff/
MIT License
37 stars 11 forks source link

Highlighting of a diff from a patch/diff file #2

Closed xVermillionx closed 1 year ago

xVermillionx commented 1 year ago

When creating a diff from a patch/diff file results in the line with additions to the patchfile being recognized as context instead of addition.

the-mikedavis commented 1 year ago

Duplicate of https://github.com/the-mikedavis/tree-sitter-diff/issues/1

This grammar focuses only on diff syntax: a separate tree-sitter-patch should be created to handle patch syntax and it can inject this grammar for the diff parts