-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit... 1. adds more detailed scopes to conflict markers 2. adds conflicting blocks to symbol list 3. removes some multi-push and lookaheads 4. adds support for indented fenced diff code blocks (allow markers to be preceded by whitespace)
- Loading branch information
Showing
4 changed files
with
87 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>scope</key> | ||
<string>meta.block.conflict.begin.diff entity.name.section</string> | ||
<key>settings</key> | ||
<dict> | ||
<key>showInSymbolList</key> | ||
<integer>1</integer> | ||
<key>symbolTransformation</key> | ||
<string>s/^/Conflict: /</string> | ||
<key>showInIndexedSymbolList</key> | ||
<integer>0</integer> | ||
<key>showInIndexedReferenceList</key> | ||
<integer>0</integer> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
\ SYNTAX TEST "Packages/Diff/Diff.sublime-syntax" | ||
|
||
1. list item with diff fenced code block | ||
|
||
```diff | ||
<<<<<<< A | ||
\^^^^^^^^^ meta.block.conflict.begin.diff - meta.block meta.block - markup | ||
\^^^^^^ punctuation.section.block.begin.diff | ||
\ ^ - entity - punctuation | ||
\ ^ entity.name.section.diff | ||
\ ^ - entity | ||
lines from A | ||
\^^^^^^^^^^^^ meta.block.conflict.diff markup.deleted.diff - meta.block meta.block | ||
======= | ||
\^^^^^^^ meta.block.conflict.separator.diff - meta.block meta.block - markup | ||
\^^^^^^ punctuation.section.block.diff | ||
lines from B | ||
\^^^^^^^^^^^ meta.block.conflict.diff markup.inserted.diff | ||
>>>>>>> B | ||
\^^^^^^^^^ meta.block.conflict.end.diff - meta.block meta.block - markup | ||
\^^^^^^ punctuation.section.block.end.diff | ||
\ ^ - entity | ||
\ ^ entity.name.section.diff | ||
\ ^ - entity | ||
``` |