mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 01:46:18 +04:00
bcf3808e97
* 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.diff
16 lines
382 B
Scheme
16 lines
382 B
Scheme
(subject) @markup.heading
|
|
(path) @string.special.path
|
|
(branch) @string.special.symbol
|
|
(commit) @constant
|
|
(item) @markup.link.url
|
|
(header) @tag
|
|
(rebase_command) @markup.raw
|
|
|
|
(change kind: "new file" @diff.plus)
|
|
(change kind: "deleted" @diff.minus)
|
|
(change kind: "modified" @diff.delta)
|
|
(change kind: "renamed" @diff.delta.moved)
|
|
|
|
[":" "->"] @punctuation.delimeter
|
|
(comment) @comment
|