Permalink
Browse files

• rewrite first line match pattern to be extended (and thus split int…

…o multiple lines) and add detect of “diff --git”

git-svn-id: http://svn.textmate.org/trunk/Bundles/Diff.tmbundle@7545 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 383d3bb commit a0d6aa2beb9b2f89d9d678fae298912d55d9fe8b @sorbits sorbits committed Jun 19, 2007
Showing with 10 additions and 1 deletion.
  1. +10 −1 Syntaxes/Diff.plist
View
@@ -8,7 +8,16 @@
<string>patch</string>
</array>
<key>firstLineMatch</key>
- <string>^(=== modified file|====\s*//.+\s-\s.+\s+====|Index: |--- [^%]|\*\*\* |\d+(,\d+)*(a|d|c)\d+(,\d+)*$)</string>
+ <string>(?x)^
+ (===\ modified\ file
+ |==== \s* // .+ \s - \s .+ \s+ ====
+ |Index:\
+ |---\ [^%]
+ |\*\*\*
+ |\d+(,\d+)* (a|d|c) \d+(,\d+)* $
+ |diff\ --git\
+ )
+ </string>
<key>keyEquivalent</key>
<string>^~D</string>
<key>name</key>

0 comments on commit a0d6aa2

Please sign in to comment.