| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | <plist version="1.0"> |
| 4 | <dict> |
| 5 | <key>fileTypes</key> |
| 6 | <array> |
| 7 | <string>patch</string> |
| 8 | <string>diff</string> |
| 9 | <string>rej</string> |
| 10 | </array> |
| 11 | <key>firstLineMatch</key> |
| 12 | <string>(?x)^ |
| 13 | (===\ modified\ file |
| 14 | |==== \s* // .+ \s - \s .+ \s+ ==== |
| 15 | |Index:\ |
| 16 | |---\ [^%\n] |
| 17 | |\*\*\*.*\d{4}\s*$ |
| 18 | |\d+(,\d+)* (a|d|c) \d+(,\d+)* $ |
| 19 | |diff\ --git\ |
| 20 | |commit\ [0-9a-f]{40}$ |
| 21 | )</string> |
| 22 | <key>keyEquivalent</key> |
| 23 | <string>^~D</string> |
| 24 | <key>name</key> |
| 25 | <string>Diff</string> |
| 26 | <key>patterns</key> |
| 27 | <array> |
| 28 | <dict> |
| 29 | <key>captures</key> |
| 30 | <dict> |
| 31 | <key>1</key> |
| 32 | <dict> |
| 33 | <key>name</key> |
| 34 | <string>punctuation.definition.separator.diff</string> |
| 35 | </dict> |
| 36 | </dict> |
| 37 | <key>match</key> |
| 38 | <string>^((\*{15})|(={67})|(-{3}))$\n?</string> |
| 39 | <key>name</key> |
| 40 | <string>meta.separator.diff</string> |
| 41 | </dict> |
| 42 | <dict> |
| 43 | <key>match</key> |
| 44 | <string>^\d+(,\d+)*(a|d|c)\d+(,\d+)*$\n?</string> |
| 45 | <key>name</key> |
| 46 | <string>meta.diff.range.normal</string> |
| 47 | </dict> |
| 48 | <dict> |
| 49 | <key>captures</key> |
| 50 | <dict> |
| 51 | <key>1</key> |
| 52 | <dict> |
| 53 | <key>name</key> |
| 54 | <string>punctuation.definition.range.diff</string> |
| 55 | </dict> |
| 56 | <key>2</key> |
| 57 | <dict> |
| 58 | <key>name</key> |
| 59 | <string>meta.toc-list.line-number.diff</string> |
| 60 | </dict> |
| 61 | <key>3</key> |
| 62 | <dict> |
| 63 | <key>name</key> |
| 64 | <string>punctuation.definition.range.diff</string> |
| 65 | </dict> |
| 66 | </dict> |
| 67 | <key>match</key> |
| 68 | <string>^(@@)\s*(.+?)\s*(@@)($\n?)?</string> |
| 69 | <key>name</key> |
| 70 | <string>meta.diff.range.unified</string> |
| 71 | </dict> |
| 72 | <dict> |
| 73 | <key>captures</key> |
| 74 | <dict> |
| 75 | <key>3</key> |
| 76 | <dict> |
| 77 | <key>name</key> |
| 78 | <string>punctuation.definition.range.diff</string> |
| 79 | </dict> |
| 80 | <key>4</key> |
| 81 | <dict> |
| 82 | <key>name</key> |
| 83 | <string>punctuation.definition.range.diff</string> |
| 84 | </dict> |
| 85 | <key>6</key> |
| 86 | <dict> |
| 87 | <key>name</key> |
| 88 | <string>punctuation.definition.range.diff</string> |
| 89 | </dict> |
| 90 | <key>7</key> |
| 91 | <dict> |
| 92 | <key>name</key> |
| 93 | <string>punctuation.definition.range.diff</string> |
| 94 | </dict> |
| 95 | </dict> |
| 96 | <key>match</key> |
| 97 | <string>^(((\-{3}) .+ (\-{4}))|((\*{3}) .+ (\*{4})))$\n?</string> |
| 98 | <key>name</key> |
| 99 | <string>meta.diff.range.context</string> |
| 100 | </dict> |
| 101 | <dict> |
| 102 | <key>match</key> |
| 103 | <string>^diff --git a/.*$\n?</string> |
| 104 | <key>name</key> |
| 105 | <string>meta.diff.header.git</string> |
| 106 | </dict> |
| 107 | <dict> |
| 108 | <key>match</key> |
| 109 | <string>^diff (-|\S+\s+\S+).*$\n?</string> |
| 110 | <key>name</key> |
| 111 | <string>meta.diff.header.command</string> |
| 112 | </dict> |
| 113 | <dict> |
| 114 | <key>captures</key> |
| 115 | <dict> |
| 116 | <key>4</key> |
| 117 | <dict> |
| 118 | <key>name</key> |
| 119 | <string>punctuation.definition.from-file.diff</string> |
| 120 | </dict> |
| 121 | <key>6</key> |
| 122 | <dict> |
| 123 | <key>name</key> |
| 124 | <string>punctuation.definition.from-file.diff</string> |
| 125 | </dict> |
| 126 | <key>7</key> |
| 127 | <dict> |
| 128 | <key>name</key> |
| 129 | <string>punctuation.definition.from-file.diff</string> |
| 130 | </dict> |
| 131 | </dict> |
| 132 | <key>match</key> |
| 133 | <string>(^(((-{3}) .+)|((\*{3}) .+))$\n?|^(={4}) .+(?= - ))</string> |
| 134 | <key>name</key> |
| 135 | <string>meta.diff.header.from-file</string> |
| 136 | </dict> |
| 137 | <dict> |
| 138 | <key>captures</key> |
| 139 | <dict> |
| 140 | <key>2</key> |
| 141 | <dict> |
| 142 | <key>name</key> |
| 143 | <string>punctuation.definition.to-file.diff</string> |
| 144 | </dict> |
| 145 | <key>3</key> |
| 146 | <dict> |
| 147 | <key>name</key> |
| 148 | <string>punctuation.definition.to-file.diff</string> |
| 149 | </dict> |
| 150 | <key>4</key> |
| 151 | <dict> |
| 152 | <key>name</key> |
| 153 | <string>punctuation.definition.to-file.diff</string> |
| 154 | </dict> |
| 155 | </dict> |
| 156 | <key>match</key> |
| 157 | <string>(^(\+{3}) .+$\n?| (-) .* (={4})$\n?)</string> |
| 158 | <key>name</key> |
| 159 | <string>meta.diff.header.to-file</string> |
| 160 | </dict> |
| 161 | <dict> |
| 162 | <key>captures</key> |
| 163 | <dict> |
| 164 | <key>3</key> |
| 165 | <dict> |
| 166 | <key>name</key> |
| 167 | <string>punctuation.definition.inserted.diff</string> |
| 168 | </dict> |
| 169 | <key>6</key> |
| 170 | <dict> |
| 171 | <key>name</key> |
| 172 | <string>punctuation.definition.inserted.diff</string> |
| 173 | </dict> |
| 174 | </dict> |
| 175 | <key>match</key> |
| 176 | <string>^(((>)( .*)?)|((\+).*))$\n?</string> |
| 177 | <key>name</key> |
| 178 | <string>markup.inserted.diff</string> |
| 179 | </dict> |
| 180 | <dict> |
| 181 | <key>captures</key> |
| 182 | <dict> |
| 183 | <key>1</key> |
| 184 | <dict> |
| 185 | <key>name</key> |
| 186 | <string>punctuation.definition.inserted.diff</string> |
| 187 | </dict> |
| 188 | </dict> |
| 189 | <key>match</key> |
| 190 | <string>^(!).*$\n?</string> |
| 191 | <key>name</key> |
| 192 | <string>markup.changed.diff</string> |
| 193 | </dict> |
| 194 | <dict> |
| 195 | <key>captures</key> |
| 196 | <dict> |
| 197 | <key>3</key> |
| 198 | <dict> |
| 199 | <key>name</key> |
| 200 | <string>punctuation.definition.inserted.diff</string> |
| 201 | </dict> |
| 202 | <key>6</key> |
| 203 | <dict> |
| 204 | <key>name</key> |
| 205 | <string>punctuation.definition.inserted.diff</string> |
| 206 | </dict> |
| 207 | </dict> |
| 208 | <key>match</key> |
| 209 | <string>^(((<)( .*)?)|((-).*))$\n?</string> |
| 210 | <key>name</key> |
| 211 | <string>markup.deleted.diff</string> |
| 212 | </dict> |
| 213 | <dict> |
| 214 | <key>begin</key> |
| 215 | <string>^(#)</string> |
| 216 | <key>captures</key> |
| 217 | <dict> |
| 218 | <key>1</key> |
| 219 | <dict> |
| 220 | <key>name</key> |
| 221 | <string>punctuation.definition.comment.diff</string> |
| 222 | </dict> |
| 223 | </dict> |
| 224 | <key>comment</key> |
| 225 | <string>Git produces unified diffs with embedded comments"</string> |
| 226 | <key>end</key> |
| 227 | <string>\n</string> |
| 228 | <key>name</key> |
| 229 | <string>comment.line.number-sign.diff</string> |
| 230 | </dict> |
| 231 | <dict> |
| 232 | <key>match</key> |
| 233 | <string>^index [0-9a-f]{7,40}\.\.[0-9a-f]{7,40}.*$\n?</string> |
| 234 | <key>name</key> |
| 235 | <string>meta.diff.index.git</string> |
| 236 | </dict> |
| 237 | <dict> |
| 238 | <key>captures</key> |
| 239 | <dict> |
| 240 | <key>1</key> |
| 241 | <dict> |
| 242 | <key>name</key> |
| 243 | <string>punctuation.separator.key-value.diff</string> |
| 244 | </dict> |
| 245 | <key>2</key> |
| 246 | <dict> |
| 247 | <key>name</key> |
| 248 | <string>meta.toc-list.file-name.diff</string> |
| 249 | </dict> |
| 250 | </dict> |
| 251 | <key>match</key> |
| 252 | <string>^Index(:) (.+)$\n?</string> |
| 253 | <key>name</key> |
| 254 | <string>meta.diff.index</string> |
| 255 | </dict> |
| 256 | <dict> |
| 257 | <key>match</key> |
| 258 | <string>^Only in .*: .*$\n?</string> |
| 259 | <key>name</key> |
| 260 | <string>meta.diff.only-in</string> |
| 261 | </dict> |
| 262 | </array> |
| 263 | <key>scopeName</key> |
| 264 | <string>source.diff</string> |
| 265 | <key>uuid</key> |
| 266 | <string>7E848FF4-708E-11D9-97B4-0011242E4184</string> |
| 267 | </dict> |
| 268 | </plist> |