Skip to content

Commit

Permalink
[Diff] Embed Git Diff instead of pushing
Browse files Browse the repository at this point in the history
Also match it only a single time.

Co-Authored-By: @deathaxe
  • Loading branch information
michaelblyons committed Dec 16, 2024
1 parent b5c156a commit 6826deb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Diff/Diff.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ first_line_match: |-
contexts:
main:
- match: ^(?={{git_first_line}})
push: Packages/Git Formats/Git Diff.sublime-syntax#email-first-line
embed: Packages/Git Formats/Git Diff.sublime-syntax#email-first-line
escape: (?!)
- match: ^
set: diffs

diffs:
- include: leading-text
- include: line-ranges
- include: headers
Expand Down

0 comments on commit 6826deb

Please sign in to comment.