{ "fileTypes": [ "COMMIT_EDITMSG", "MERGE_MSG" ], "foldingStartMarker": "^\\+\\+\\+", "foldingStopMarker": "^---", "name": "Git Commit Message", "patterns": [ { "begin": "\\A(?!#)", "end": "(?=# Please enter the commit message)", "name": "meta.scope.message.git-commit", "patterns": [ { "begin": "\\G", "end": "^(?!\\G)", "patterns": [ { "captures": { "1": { "name": "keyword.other.$2.git-commit" } }, "match": "\\G((fixup|squash)!)\\s*" }, { "match": ".{66,}$", "name": "invalid.illegal.line-too-long.git-commit" }, { "match": ".{51,}$", "name": "invalid.deprecated.line-too-long.git-commit" } ] } ] }, { "begin": "(?=# Please enter the commit message)", "end": "\\z", "name": "meta.scope.metadata.git-commit", "patterns": [ { "include": "#metadata" } ] } ], "repository": { "metadata": { "patterns": [ { "begin": "(?=^# Changes to be committed:)", "end": "(?!\\G)((?=^# \\w)|(?!^#))", "patterns": [ { "begin": "(^[ \\t]+)?(?=#)", "beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.git-commit" } }, "contentName": "comment.line.number-sign.git-commit", "end": "(?!\\G)^", "patterns": [ { "match": "\\G#", "name": "punctuation.definition.comment.git-commit" }, { "match": "((modified|renamed):.*)$\\n?", "name": "markup.changed.git-commit" }, { "match": "(new file:.*)$\\n?", "name": "markup.inserted.git-commit" }, { "match": "(deleted:.*)$\\n?", "name": "markup.deleted.git-commit" } ] } ] }, { "begin": "(^[ \\t]+)?(?=#)", "beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.git-commit" } }, "contentName": "comment.line.number-sign.git-commit", "end": "(?!\\G)^", "patterns": [ { "match": "\\G#", "name": "punctuation.definition.comment.git-commit" } ] }, { "begin": "(?=diff\\ \\-\\-git)", "comment": "diff presented at the end of the commit message when using commit -v.", "contentName": "source.diff", "end": "\\z", "name": "meta.embedded.diff.git-commit", "patterns": [ { "include": "source.diff" } ] } ] } }, "scopeName": "text.git-commit" }