Path: blob/main/extensions/git-base/syntaxes/git-commit.tmLanguage.json
3314 views
{1"information_for_contributors": [2"This file has been converted from https://github.com/walles/git-commit-message-plus/blob/master/syntaxes/git-commit.tmLanguage.json",3"If you want to provide a fix or improvement, please create a pull request against the original repository.",4"Once accepted there, we are happy to receive an update request."5],6"version": "https://github.com/walles/git-commit-message-plus/commit/35a079dea5a91b087021b40c01a6bb4eb0337a87",7"name": "Git Commit Message",8"scopeName": "text.git-commit",9"patterns": [10{11"comment": "diff presented at the end of the commit message when using commit -v.",12"name": "meta.embedded.diff.git-commit",13"contentName": "source.diff",14"begin": "(?=^diff\\ \\-\\-git)",15"end": "\\z",16"patterns": [17{18"include": "source.diff"19}20]21},22{23"comment": "User supplied message",24"name": "meta.scope.message.git-commit",25"begin": "^(?!#)",26"end": "^(?=#)",27"patterns": [28{29"comment": "Mark > 50 lines as deprecated, > 72 as illegal",30"name": "meta.scope.subject.git-commit",31"match": "\\G.{0,50}(.{0,22}(.*))$",32"captures": {33"1": {34"name": "invalid.deprecated.line-too-long.git-commit"35},36"2": {37"name": "invalid.illegal.line-too-long.git-commit"38}39}40}41]42},43{44"comment": "Git supplied metadata in a number of lines starting with #",45"name": "meta.scope.metadata.git-commit",46"begin": "^(?=#)",47"contentName": "comment.line.number-sign.git-commit",48"end": "^(?!#)",49"patterns": [50{51"match": "^#\\t((modified|renamed):.*)$",52"captures": {53"1": {54"name": "markup.changed.git-commit"55}56}57},58{59"match": "^#\\t(new file:.*)$",60"captures": {61"1": {62"name": "markup.inserted.git-commit"63}64}65},66{67"match": "^#\\t(deleted.*)$",68"captures": {69"1": {70"name": "markup.deleted.git-commit"71}72}73},74{75"comment": "Fallback for non-English git commit template",76"match": "^#\\t([^:]+): *(.*)$",77"captures": {78"1": {79"name": "keyword.other.file-type.git-commit"80},81"2": {82"name": "string.unquoted.filename.git-commit"83}84}85}86]87}88]89}9091