mirror of https://github.com/helix-editor/helix
Add tree-sitter-git-diff (#1373)
* add submodule on tree-sitter-git-diff * add git-diff highlights * inject git-diff into git-commit * update tree-sitter-git-commit with fix for bad diff case * add git-diff to language support docs * include-children in diff injections This ensures that children nodes of $.message are included in the injection, such as $.user or issue/pr numbers. Without this change, diffs containing '#' or '@' characters can trip up the injection and be parsed separately. See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629 * set diff language's scope as source.diffpull/1412/head
parent
49444f9c05
commit
bcf3808e97
@ -1 +1 @@
|
|||||||
Subproject commit 5cd4776c86c82d9d6afdc8c73a47a08057aef618
|
Subproject commit 066e395e1107df17183cf3ae4230f1a1406cc972
|
@ -0,0 +1 @@
|
|||||||
|
Subproject commit c12e6ecb54485f764250556ffd7ccb18f8e2942b
|
@ -0,0 +1,6 @@
|
|||||||
|
[(addition) (new_file)] @diff.plus
|
||||||
|
[(deletion) (old_file)] @diff.minus
|
||||||
|
|
||||||
|
(commit) @constant
|
||||||
|
(location) @attribute
|
||||||
|
(command) @markup.bold
|
Loading…
Reference in New Issue