Skip to content

Commit

Permalink
• recognize and match diff files produced by Perforce and give the la…
Browse files Browse the repository at this point in the history
…nguage grammar a key equivalent (patch by Gerd Knops)

git-svn-id: http://svn.textmate.org/trunk/Bundles/Diff.tmbundle@2679 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
sorbits committed Feb 7, 2006
1 parent 01e3cd1 commit 91463a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Syntaxes/Diff.plist
Expand Up @@ -8,7 +8,9 @@
<string>patch</string> <string>patch</string>
</array> </array>
<key>firstLineMatch</key> <key>firstLineMatch</key>
<string>^(Index: |--- [^%]|\*\*\* |\d+(,\d+)*(a|d|c)\d+(,\d+)*$)</string> <string>^(====\s*//.+\s-\s.+\s+====|Index: |--- [^%]|\*\*\* |\d+(,\d+)*(a|d|c)\d+(,\d+)*$)</string>
<key>keyEquivalent</key>
<string>^~D</string>
<key>name</key> <key>name</key>
<string>Diff</string> <string>Diff</string>
<key>patterns</key> <key>patterns</key>
Expand Down Expand Up @@ -47,13 +49,13 @@
</dict> </dict>
<dict> <dict>
<key>match</key> <key>match</key>
<string>^((-{3} .+)|(\*{3} .+))$\n?</string> <string>(^((-{3} .+)|(\*{3} .+))$\n?|^={4} .+(?= - ))</string>
<key>name</key> <key>name</key>
<string>meta.diff.header.from-file</string> <string>meta.diff.header.from-file</string>
</dict> </dict>
<dict> <dict>
<key>match</key> <key>match</key>
<string>^\+{3} .+$\n?</string> <string>(^\+{3} .+$\n?| - .* ={4}$\n?)</string>
<key>name</key> <key>name</key>
<string>meta.diff.header.to-file</string> <string>meta.diff.header.to-file</string>
</dict> </dict>
Expand Down

0 comments on commit 91463a2

Please sign in to comment.