fileTypes COMMIT_EDITMSG name Git Commit Message patterns captures 1 name punctuation.definition.comment.git-commit match ^\s*(#).*$ ? name comment.line.number-sign.git-commit begin diff\ \-\-git comment diff at the end of the commit message when using commit -v, or viewing a log. End pattern is just something to be never matched so that the meta continues untill the end of the file. end (?=xxxxxx)123457 name meta.diff.git-commit patterns include source.diff scopeName text.git-commit uuid de3fb2fc-e564-4a31-9813-5ee26967c5c8