Skip to content

Commit

Permalink
[Diff] Rescope paths
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelblyons committed Dec 19, 2024
1 parent 39a126a commit 3d631ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Git Formats/Git Diff.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ contexts:
9: markup.deleted.diff
stat-toc-filename:
- meta_content_scope: meta.toc-list.filename.diff entity.name.diff
- meta_content_scope: meta.toc-list.filename.diff meta.path.git string.unquoted.git
- match: (?=[ ]+\|)
pop: 1
- include: path-separators
Expand Down Expand Up @@ -302,7 +302,7 @@ contexts:

diff-file-header-path:
- meta_include_prototype: false
- meta_content_scope: meta.path.diff entity.name.diff
- meta_content_scope: meta.path.diff string.unquoted.git
- match: (?=\s|$)
pop: 1
- match: \\.
Expand Down
8 changes: 4 additions & 4 deletions Git Formats/tests/syntax_test_git_diff.patch
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ Much better, no?

---
Gemfile | 1 +
\^^^^^^^ entity.name.diff
\^^^^^^^ meta.toc-list.filename.diff meta.path.git string.unquoted.git
\ ^ punctuation.separator.sequence.diff
\ ^ meta.number.integer.decimal.diff constant.numeric.value.diff
\ ^ markup.inserted.diff
app/assets/images/logo.jpeg | Bin 0 -> 50966 bytes
\^^^^^^^^^^^^^^^^^^^^^^^^^^^ entity.name.diff
\^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.toc-list.filename.diff meta.path.git string.unquoted.git
\ ^ punctuation.separator.path.diff
\ ^ punctuation.separator.path.diff
\ ^ punctuation.separator.path.diff
Expand All @@ -106,10 +106,10 @@ diff --git a/Gemfile b/Gemfile
\ ^^^^^ variable.parameter.diff
\ ^^ punctuation.definition.parameter.diff
\ ^ variable.parameter.source.diff
\ ^^^^^^^^ meta.path.diff entity.name.diff
\ ^^^^^^^^ meta.path.diff string.unquoted.git
\ ^ punctuation.separator.path.diff
\ ^ variable.parameter.source.diff
\ ^^^^^^^^ meta.path.diff entity.name.diff
\ ^^^^^^^^ meta.path.diff string.unquoted.git
\ ^ punctuation.separator.path.diff
index c661619..989efe8 100644
--- a/Gemfile
Expand Down

0 comments on commit 3d631ec

Please sign in to comment.