public
Description: The Git TextMate Bundle
Homepage: http://tim.theenchanter.com/
Clone URL: git://github.com/timcharper/git-tmbundle.git
git-tmbundle / Syntaxes / Git Commit Message.tmLanguage
100644 55 lines (54 sloc) 1.466 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>fileTypes</key>
  <array>
    <string>COMMIT_EDITMSG</string>
  </array>
  <key>foldingStartMarker</key>
  <string>^\+\+\+</string>
  <key>foldingStopMarker</key>
  <string>^---|^$</string>
  <key>name</key>
  <string>Git Commit Message</string>
  <key>patterns</key>
  <array>
    <dict>
      <key>captures</key>
      <dict>
        <key>1</key>
        <dict>
          <key>name</key>
          <string>punctuation.definition.comment.git-commit</string>
        </dict>
      </dict>
      <key>match</key>
      <string>^\s*(#).*$\n?</string>
      <key>name</key>
      <string>comment.line.number-sign.git-commit</string>
    </dict>
    <dict>
      <key>begin</key>
      <string>diff\ \-\-git</string>
      <key>comment</key>
      <string>diff presented at the end of the commit message when using commit -v. NB the end pattern is just something to be never matched so that the meta continues untill the end of the file. From Allan.</string>
      <key>end</key>
      <string>(?=xxxxxx)123457</string>
      <key>name</key>
      <string>meta.diff.git-commit</string>
      <key>patterns</key>
      <array>
        <dict>
          <key>include</key>
          <string>source.diff</string>
        </dict>
      </array>
    </dict>
  </array>
  <key>scopeName</key>
  <string>text.git-commit</string>
  <key>uuid</key>
  <string>BFE83C06-8508-44BE-A975-95A57BF619A7</string>
</dict>
</plist>