Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow comments in commit message area

  • Loading branch information...
commit 9538d82e21326050e5386c3747cbb04f437b51a6 1 parent 12c87d5
@infininight infininight authored
Showing with 32 additions and 23 deletions.
  1. +32 −23 Syntaxes/Git Commit Message.tmLanguage
View
55 Syntaxes/Git Commit Message.tmLanguage
@@ -57,6 +57,10 @@
</dict>
</array>
</dict>
+ <dict>
+ <key>include</key>
+ <string>#comment</string>
+ </dict>
</array>
</dict>
<dict>
@@ -77,6 +81,32 @@
</array>
<key>repository</key>
<dict>
+ <key>comment</key>
+ <dict>
+ <key>begin</key>
+ <string>(^[ \t]+)?(?=#)</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>1</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.whitespace.comment.leading.git-commit</string>
+ </dict>
+ </dict>
+ <key>contentName</key>
+ <string>comment.line.number-sign.git-commit</string>
+ <key>end</key>
+ <string>(?!\G)^</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\G#</string>
+ <key>name</key>
+ <string>punctuation.definition.comment.git-commit</string>
+ </dict>
+ </array>
+ </dict>
<key>metadata</key>
<dict>
<key>patterns</key>
@@ -134,29 +164,8 @@
</array>
</dict>
<dict>
- <key>begin</key>
- <string>(^[ \t]+)?(?=#)</string>
- <key>beginCaptures</key>
- <dict>
- <key>1</key>
- <dict>
- <key>name</key>
- <string>punctuation.whitespace.comment.leading.git-commit</string>
- </dict>
- </dict>
- <key>contentName</key>
- <string>comment.line.number-sign.git-commit</string>
- <key>end</key>
- <string>(?!\G)^</string>
- <key>patterns</key>
- <array>
- <dict>
- <key>match</key>
- <string>\G#</string>
- <key>name</key>
- <string>punctuation.definition.comment.git-commit</string>
- </dict>
- </array>
+ <key>include</key>
+ <string>#comment</string>
</dict>
<dict>
<key>begin</key>
Please sign in to comment.
Something went wrong with that request. Please try again.