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

Fix highlighting diff of diffs #3

Closed danyspin97 closed 1 year ago

danyspin97 commented 1 year ago

The symbol + followed by another one is valid when the diff is showing another diff, e.g. when committing a diff file to a repository.

the-mikedavis commented 1 year ago

parser.c is automatically generated by tree-sitter generate based on the rules in grammar.js. The change will need to be in grammar.js instead

danyspin97 commented 1 year ago

parser.c is automatically generated by tree-sitter generate based on the rules in grammar.js. The change will need to be in grammar.js instead

Woops, sorry. Fixed.