| 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>COMMIT_EDITMSG</string> |
| 8 | <string>MERGE_MSG</string> |
| 9 | </array> |
| 10 | <key>foldingStartMarker</key> |
| 11 | <string>^\+\+\+</string> |
| 12 | <key>foldingStopMarker</key> |
| 13 | <string>^---</string> |
| 14 | <key>name</key> |
| 15 | <string>Git Commit Message</string> |
| 16 | <key>patterns</key> |
| 17 | <array> |
| 18 | <dict> |
| 19 | <key>begin</key> |
| 20 | <string>\A(?!# Please enter the commit message)</string> |
| 21 | <key>end</key> |
| 22 | <string>^(?=# Please enter the commit message)</string> |
| 23 | <key>name</key> |
| 24 | <string>meta.scope.message.git-commit</string> |
| 25 | <key>patterns</key> |
| 26 | <array> |
| 27 | <dict> |
| 28 | <key>begin</key> |
| 29 | <string>\A(?=#)</string> |
| 30 | <key>end</key> |
| 31 | <string>^(?!#)</string> |
| 32 | <key>patterns</key> |
| 33 | <array> |
| 34 | <dict> |
| 35 | <key>include</key> |
| 36 | <string>#comment</string> |
| 37 | </dict> |
| 38 | </array> |
| 39 | </dict> |
| 40 | <dict> |
| 41 | <key>begin</key> |
| 42 | <string>^(?!# Please enter the commit message)</string> |
| 43 | <key>end</key> |
| 44 | <string>^(?=# Please enter the commit message)</string> |
| 45 | <key>patterns</key> |
| 46 | <array> |
| 47 | <dict> |
| 48 | <key>begin</key> |
| 49 | <string>\G</string> |
| 50 | <key>end</key> |
| 51 | <string>^(?!\G)</string> |
| 52 | <key>name</key> |
| 53 | <string>meta.scope.subject.git-commit</string> |
| 54 | <key>patterns</key> |
| 55 | <array> |
| 56 | <dict> |
| 57 | <key>captures</key> |
| 58 | <dict> |
| 59 | <key>1</key> |
| 60 | <dict> |
| 61 | <key>name</key> |
| 62 | <string>keyword.other.$2.git-commit</string> |
| 63 | </dict> |
| 64 | </dict> |
| 65 | <key>match</key> |
| 66 | <string>\G((fixup|squash)!)\s*</string> |
| 67 | </dict> |
| 68 | <dict> |
| 69 | <key>match</key> |
| 70 | <string>.{66,}$</string> |
| 71 | <key>name</key> |
| 72 | <string>invalid.illegal.line-too-long.git-commit</string> |
| 73 | </dict> |
| 74 | <dict> |
| 75 | <key>match</key> |
| 76 | <string>.{51,}$</string> |
| 77 | <key>name</key> |
| 78 | <string>invalid.deprecated.line-too-long.git-commit</string> |
| 79 | </dict> |
| 80 | </array> |
| 81 | </dict> |
| 82 | <dict> |
| 83 | <key>begin</key> |
| 84 | <string>^(?!# Please enter the commit message)</string> |
| 85 | <key>end</key> |
| 86 | <string>^(?=# Please enter the commit message)</string> |
| 87 | <key>patterns</key> |
| 88 | <array> |
| 89 | <dict> |
| 90 | <key>include</key> |
| 91 | <string>#comment</string> |
| 92 | </dict> |
| 93 | </array> |
| 94 | </dict> |
| 95 | </array> |
| 96 | </dict> |
| 97 | </array> |
| 98 | </dict> |
| 99 | <dict> |
| 100 | <key>begin</key> |
| 101 | <string>^(?=# Please enter the commit message)</string> |
| 102 | <key>end</key> |
| 103 | <string>\z</string> |
| 104 | <key>name</key> |
| 105 | <string>meta.scope.metadata.git-commit</string> |
| 106 | <key>patterns</key> |
| 107 | <array> |
| 108 | <dict> |
| 109 | <key>include</key> |
| 110 | <string>#metadata</string> |
| 111 | </dict> |
| 112 | </array> |
| 113 | </dict> |
| 114 | </array> |
| 115 | <key>repository</key> |
| 116 | <dict> |
| 117 | <key>comment</key> |
| 118 | <dict> |
| 119 | <key>begin</key> |
| 120 | <string>^(#)</string> |
| 121 | <key>captures</key> |
| 122 | <dict> |
| 123 | <key>1</key> |
| 124 | <dict> |
| 125 | <key>name</key> |
| 126 | <string>punctuation.definition.comment.git-commit</string> |
| 127 | </dict> |
| 128 | </dict> |
| 129 | <key>end</key> |
| 130 | <string>\n</string> |
| 131 | <key>name</key> |
| 132 | <string>comment.line.number-sign.git-commit</string> |
| 133 | </dict> |
| 134 | <key>metadata</key> |
| 135 | <dict> |
| 136 | <key>patterns</key> |
| 137 | <array> |
| 138 | <dict> |
| 139 | <key>begin</key> |
| 140 | <string>(?=^# Changes to be committed:)</string> |
| 141 | <key>end</key> |
| 142 | <string>(?!\G)((?=^# \w)|(?!^#))</string> |
| 143 | <key>patterns</key> |
| 144 | <array> |
| 145 | <dict> |
| 146 | <key>begin</key> |
| 147 | <string>(^[ \t]+)?(?=#)</string> |
| 148 | <key>beginCaptures</key> |
| 149 | <dict> |
| 150 | <key>1</key> |
| 151 | <dict> |
| 152 | <key>name</key> |
| 153 | <string>punctuation.whitespace.comment.leading.git-commit</string> |
| 154 | </dict> |
| 155 | </dict> |
| 156 | <key>contentName</key> |
| 157 | <string>comment.line.number-sign.git-commit</string> |
| 158 | <key>end</key> |
| 159 | <string>(?!\G)^</string> |
| 160 | <key>patterns</key> |
| 161 | <array> |
| 162 | <dict> |
| 163 | <key>match</key> |
| 164 | <string>\G#</string> |
| 165 | <key>name</key> |
| 166 | <string>punctuation.definition.comment.git-commit</string> |
| 167 | </dict> |
| 168 | <dict> |
| 169 | <key>match</key> |
| 170 | <string>((modified|renamed):.*)$\n?</string> |
| 171 | <key>name</key> |
| 172 | <string>markup.changed.git-commit</string> |
| 173 | </dict> |
| 174 | <dict> |
| 175 | <key>match</key> |
| 176 | <string>(new file:.*)$\n?</string> |
| 177 | <key>name</key> |
| 178 | <string>markup.inserted.git-commit</string> |
| 179 | </dict> |
| 180 | <dict> |
| 181 | <key>match</key> |
| 182 | <string>(deleted:.*)$\n?</string> |
| 183 | <key>name</key> |
| 184 | <string>markup.deleted.git-commit</string> |
| 185 | </dict> |
| 186 | </array> |
| 187 | </dict> |
| 188 | </array> |
| 189 | </dict> |
| 190 | <dict> |
| 191 | <key>include</key> |
| 192 | <string>#comment</string> |
| 193 | </dict> |
| 194 | <dict> |
| 195 | <key>begin</key> |
| 196 | <string>(?=diff\ \-\-git)</string> |
| 197 | <key>comment</key> |
| 198 | <string>diff presented at the end of the commit message when using commit -v.</string> |
| 199 | <key>contentName</key> |
| 200 | <string>source.diff</string> |
| 201 | <key>end</key> |
| 202 | <string>\z</string> |
| 203 | <key>name</key> |
| 204 | <string>meta.embedded.diff.git-commit</string> |
| 205 | <key>patterns</key> |
| 206 | <array> |
| 207 | <dict> |
| 208 | <key>include</key> |
| 209 | <string>source.diff</string> |
| 210 | </dict> |
| 211 | </array> |
| 212 | </dict> |
| 213 | </array> |
| 214 | </dict> |
| 215 | </dict> |
| 216 | <key>scopeName</key> |
| 217 | <string>text.git-commit</string> |
| 218 | <key>uuid</key> |
| 219 | <string>BFE83C06-8508-44BE-A975-95A57BF619A7</string> |
| 220 | </dict> |
| 221 | </plist> |