Closed jan-xyz closed 3 months ago
Thank you! However, it seems that the syntax highlighting is not correct, especially on the first line.
before
after
I think that's a problem with the tree-sitter parser. I also noticed that in other diff scenarios.
the problem is now fixed, the tree sitter parser only allows diff --git ...
as a command to parse the output.
Here is the currently hard-coded --git
: https://github.com/the-mikedavis/tree-sitter-diff/blob/c165725c28e69b36c5799ff0e458713a844f1aaf/grammar.js#L68
+1 - this would be great to get merged.
The git parser for treesitter fixed the problem upstream and should be fine now, @aznhe21
+1
Apologies for the delayed response. Thank you for addressing this!
The current highlighter is using the regex highlighter per default, this tries to do it with tree sitter and if fails uses the regex highlighting.