helix-mods/runtime/queries/git-commit/injections.scm
Michael Davis 8fda87af2b
add tree-sitter-git-rebase (#1402)
* add submodule on tree-sitter-rebase, add to languages

* add basic highlights query

* inject bash in execute statements

* update tree-sitter-rebase

* tree-sitter-rebase->tree-sitter-git-rebase

* get injection working with tree-sitter-git-commit

* set scope under source.gitrebase

* unset include-children on commit message injections

* Revert "unset include-children on commit message injections"

This reverts commit 2ecee155ea8e229651920b291062c2ee84b47944.

* fix generated language docs

* use rebase_command scopes from tree-sitter-git-commit
2021-12-31 06:58:47 +08:00

8 lines
240 B
Scheme

((comment (scissors))
(message) @injection.content
(#set! injection.include-children)
(#set! injection.language "diff"))
((rebase_command) @injection.content
(#set! injection.include-children)
(#set! injection.language "git-rebase"))