diff options
Diffstat (limited to 'runtime/queries/git-rebase/injections.scm')
-rw-r--r-- | runtime/queries/git-rebase/injections.scm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/queries/git-rebase/injections.scm b/runtime/queries/git-rebase/injections.scm index 070129b6..90f1f941 100644 --- a/runtime/queries/git-rebase/injections.scm +++ b/runtime/queries/git-rebase/injections.scm @@ -1,4 +1,5 @@ -((operation - operator: ["x" "exec"] - (command) @injection.content) - (#set! injection.language "bash")) +(((command) @attribute + (message)? @injection.content) + (#match? @attribute "^(x|exec)$") + (#set! injection.language "bash") +) |