Skip to content

Commit

Permalink
include-children in diff injections
Browse files Browse the repository at this point in the history
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 #1373 (comment)
  • Loading branch information
the-mikedavis committed Dec 29, 2021
1 parent 1c2b05e commit 7cd606b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/queries/git-commit/injections.scm
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
((comment (scissors))
(message) @injection.content
(#set! injection.include-children)
(#set! injection.language "diff"))

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

0 comments on commit 7cd606b

Please sign in to comment.