Skip to content

Commit 0a25a14

Browse files
committed
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 helix-editor#1373 (comment)
1 parent c61872d commit 0a25a14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

runtime/queries/git-commit/injections.scm

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
((comment (scissors))
22
(message) @injection.content
3+
(#set! injection.include-children)
34
(#set! injection.language "diff"))
45

56
; once a rebase grammar is available, we can inject rebase highlighting into

0 commit comments

Comments
 (0)